I have a problem with the "navigate" router function, in my AppComponent I have:
@RouteConfig([
{path:'/home', name: 'Home', component: HomeComponent, useAsDefault: true, data: {user: null}},
{path:'/dashboard', name: 'Dashboard', component: DashboardComponent}
])
In my HomeComponent, I am trying to do this:
...
constructor(private _router:Router){}
changePage(){
this._router.parent.navigate(["Dashboard"]);
}
...
It does not send me to '/ dashboard', is that normal?
source
share