Revert: "feat(router): add navigationSource and restoredState to NavigationStart event (#21728)"

This reverts commit 3b7bab7d22. Will be re-merged after fixing integration of minor breaking change.
This commit is contained in:
Jason Aden
2018-01-26 16:10:22 -08:00
parent c3fb820473
commit ede9cb7c2f
10 changed files with 40 additions and 183 deletions

View File

@ -63,9 +63,8 @@ export class ServerPlatformLocation implements PlatformLocation {
}
(this as{hash: string}).hash = value;
const newUrl = this.url;
scheduleMicroTask(() => this._hashUpdate.next({
type: 'hashchange', state: null, oldUrl, newUrl
} as LocationChangeEvent));
scheduleMicroTask(
() => this._hashUpdate.next({ type: 'hashchange', oldUrl, newUrl } as LocationChangeEvent));
}
replaceState(state: any, title: string, newUrl: string): void {