My routing
RouterModule.forRoot([
{ path: 'login', component: LoginComponent },
{ path: 'home', component: HomeComponent },
])
In app component I have this.router.navigate(['home']); This doesn't navigate me to home component.
When I routed to login page, my left nav is also displayed.
My app.component.ts
<div class='container-fluid'>
<div class='row'>
<div class='col-sm-3'>
<nav-menu></nav-menu>
</div>
<div class='col-sm-9 body-content'>
<router-outlet>
<input style="float:right" placeholder="Search" autofocus>
</router-outlet>
</div>
</div>
</div>