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

testing - Detect whether test has failed within fixture -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

android - Create single AAR file from multiple modules using Gradle -