fix(router): navigate on popstate event

This commit is contained in:
Brian Ford 2015-05-03 20:22:41 -07:00
parent 2f0fef8ee1
commit 2713b7877b
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ export class Router {
export class RootRouter extends Router {
constructor(registry:RouteRegistry, pipeline:Pipeline, location:Location, hostComponent:Type) {
super(registry, pipeline, location, null, hostComponent);
this._location.subscribe((url) => this.navigate(url));
this._location.subscribe((change) => this.navigate(change['url']));
this._registry.configFromComponent(hostComponent);
this.navigate(location.path());
}