From 1c94c32f4df2a74060ea6b281700051e7a0cc45b Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 1 Jul 2015 16:37:36 -0700 Subject: [PATCH] fix(router): child routers should delegate navigation to the root router There is an e2e tests in the examples/routing app testing this behavior --- modules/angular2/src/router/router.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/angular2/src/router/router.ts b/modules/angular2/src/router/router.ts index 8a86b600ca..6d8b313231 100644 --- a/modules/angular2/src/router/router.ts +++ b/modules/angular2/src/router/router.ts @@ -219,4 +219,10 @@ class ChildRouter extends Router { super(parent._registry, parent._pipeline, parent, hostComponent); this.parent = parent; } + + + navigate(url: string): Promise { + // Delegate navigation to the root router + return this.parent.navigate(url); + } }