Having worked with an earlier version of Angular, I am facing issues with my navbar routes not working properly on my Contact Page. Can someone shed some light on this for me?
If you want to take a look at the code, here is the link: https://github.com/Logan-0/ngPersonal
I'm confused about why I need both Index.html and app.component.html along with specific HTML files for components. Do I really have to keep all of them or can some be removed?
I've tried various things like redoing routes, adding redirects, and even had it working for a while until something went wrong. I also played around with tags like <html>, <head>, and <body> in different levels of the HTML pages.
Update: Even after making changes as shown below, nothing seems to work:
<li class="nav-item home" id='nav-links'>
<a [routerLink]="['/']">Home</a>
</li>
<li class="nav-item about" id='nav-links'>
<a [routerLink]="['/about']">About</a>
</li>
<li class="nav-item contact" id='nav-links'>
<a [routerLink]="['/contact']">Contact</a>
</li>
<li class="nav-item project" id='nav-links'>
<a [routerLink]="['/projects']">Projects</a>
</li>