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:
Igor Minar 2015-07-01 16:37:36 -07:00
parent d5ace7a562
commit 1c94c32f4d
1 changed files with 6 additions and 0 deletions

View File

@ -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);
}
}