I am trying to switch to the home route from the children's route, but nothing happens.
those. current route /projects
this.router.navigate(['/']) routerLink="/" not routerLink="/" , nor routerLink="/" .
My routerConfig is as follows
const routes: Routes = [ { path: '', component: HomeComponent }, { path: '/projects', component: ProjectsComponent } ]
How can I do it?
koech source share