Revert "fix(router): navigating to the current location works (#19463)"

This reverts commit b67d574a95.
This commit is contained in:
Chuck Jazdzewski
2017-10-06 18:15:19 -07:00
parent 0cc87c5ba1
commit 8e5b582b61
3 changed files with 95 additions and 120 deletions

View File

@ -41,9 +41,7 @@ export class SpyLocation implements Location {
return currPath == givenPath + (query.length > 0 ? ('?' + query) : '');
}
simulateUrlPop(pathname: string) {
this._subject.emit({'url': pathname, 'pop': true, 'type': 'popstate'});
}
simulateUrlPop(pathname: string) { this._subject.emit({'url': pathname, 'pop': true}); }
simulateHashChange(pathname: string) {
// Because we don't prevent the native event, the browser will independently update the path