Hi all!
I came across a weird behaviour with router navigation with child routers.
Parent Router:
@RouteConfig([
{ path: 'child/...', as: 'Child', component: Child }
])
Child Router:
@RouteConfig([
{ path: '/', redirectTo: '/favorites' },
{ path: ':category', as: 'Category', component: Category }
])
If I use the router navigation API, this navigation seems not to be working:
this.router.navigate('child');
Neither does refresh the page work (refresh with '#/child' does not even instanciate the Child router).
Child Router redirect seems to be only working with Router Link:
<a [router-link]="['Child']">Home</a>
Is it possible this is occuring since the url does not match the pattern '/...' ?
Can anyone confirm this?
Best regards,
tbragaf
Hi all!
I came across a weird behaviour with router navigation with child routers.
Parent Router:
Child Router:
If I use the router navigation API, this navigation seems not to be working:
Neither does refresh the page work (refresh with '#/child' does not even instanciate the Child router).
Child Router redirect seems to be only working with Router Link:
Is it possible this is occuring since the url does not match the pattern '/...' ?
Can anyone confirm this?
Best regards,
tbragaf