I have a route like this:
{
path: 'parent',
children: [
{
path: '',
component: ParentComponent
},
{
path: 'child1',
children: [
{
path: ':childID',
component: Child1Component
}
]
},
{
path: 'child2',
children: [
{
path: ':childID',
component: Child2Component
}
]
}
]
}
Now I want to call route for child1/childID. How do I route to it?
Right now I use this:
this._router.navigate(["child1", auction_ID]);
but it does not routes back to parent
this._router.navigate(["/parent"]):