I have been working with Angular routing and I believe that I may not be using it correctly.
While it is functional, it seems to be causing issues with the HTML navbars - specifically the Info and Skills tabs.
When clicking on Skills, a component popup should appear as I had previously implemented Bootstrap modal for this purpose (which worked fine before introducing routing).
For clicking on Info, it should navigate to:
<div id="info">
Below is the routing configuration:
const routes: Routes =[
{ path: '', redirectTo: '/admin', pathMatch: 'full' },
{ path: 'admin', component: AdminComponent},
{ path: 'projects', component: ProjectsComponent}
];
Here is the main page's HTML code including the header navbar, which should function properly whether on the projects page or admin page:
<ul class="navbar-nav mr-auto navbarCustom">
<li class="nav-item">
<a class="nav-link" routerLink="" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
<skills></skills>
</a>
</li>
<li class="nav-item">
<a class="nav-link" routerLink="/projects" href="#">Projects</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#info">Info</a>
</li>
</ul>