angular - Alpha router navigation by router -
i migrating new router. before, had:
this._router.navigate(['main', 'home']);
and route config was;
main (parent view) ---home (child view)
now, have following:
{path: 'main', component: maincomponent, children:[ {path: 'home', component: homecomponent, children:[..] ....]
however, following doesn't work:
this._router.navigate(['main', 'home']);
it doesnt throw error or anything. missing?
navigation in new router should work this:
this._router.navigate(['/main/home']);
Comments
Post a Comment