I setup routing like this
{
path: ':parent', component: ParentComponent,
resolve: { data: ParentResolve },
children: [
{
path: ':child', component: ChildComponent,
resolve: {
data: ChildResolve
}
}
}
Everything works normally but when I change my url from /:parent/:child
to /:parent
. I want to redirect to child route with param get from ParentResolve.
My problem: Angular does not call Resolve guard when I change url by hand so I can't redirect to child route.
Please ask me if you're not clear, thank you.