Skip to content

Commit 2713b78

Browse files
committed
fix(router): navigate on popstate event
1 parent 2f0fef8 commit 2713b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/angular2/src/router/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class Router {
196196
export class RootRouter extends Router {
197197
constructor(registry:RouteRegistry, pipeline:Pipeline, location:Location, hostComponent:Type) {
198198
super(registry, pipeline, location, null, hostComponent);
199-
this._location.subscribe((url) => this.navigate(url));
199+
this._location.subscribe((change) => this.navigate(change['url']));
200200
this._registry.configFromComponent(hostComponent);
201201
this.navigate(location.path());
202202
}

0 commit comments

Comments
 (0)