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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -