fix(router): child routers should delegate navigation to the root router
There is an e2e tests in the examples/routing app testing this behavior
This commit is contained in:
parent
d5ace7a562
commit
1c94c32f4d
|
@ -219,4 +219,10 @@ class ChildRouter extends Router {
|
|||
super(parent._registry, parent._pipeline, parent, hostComponent);
|
||||
this.parent = parent;
|
||||
}
|
||||
|
||||
|
||||
navigate(url: string): Promise<any> {
|
||||
// Delegate navigation to the root router
|
||||
return this.parent.navigate(url);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue