fix(router): navigate on popstate event
This commit is contained in:
parent
2f0fef8ee1
commit
2713b7877b
|
@ -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…
Reference in New Issue