fix(router): navigate on popstate event
This commit is contained in:
parent
2f0fef8ee1
commit
2713b7877b
2
modules/angular2/src/router/router.js
vendored
2
modules/angular2/src/router/router.js
vendored
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user