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

@ -14,7 +14,6 @@ import {LocationStrategy} from './location_strategy';
/** @experimental */
export interface PopStateEvent {
pop?: boolean;
state?: any;
type?: string;
url?: string;
}
@ -57,7 +56,6 @@ export class Location {
this._subject.emit({
'url': this.path(true),
'pop': true,
'state': ev.state,
'type': ev.type,
});
});
@ -105,16 +103,16 @@ export class Location {
* Changes the browsers URL to the normalized version of the given URL, and pushes a
* new item onto the platform's history.
*/
go(path: string, query: string = '', state: any = null): void {
this._platformStrategy.pushState(state, '', path, query);
go(path: string, query: string = ''): void {
this._platformStrategy.pushState(null, '', path, query);
}
/**
* Changes the browsers URL to the normalized version of the given URL, and replaces
* the top item on the platform's history stack.
*/
replaceState(path: string, query: string = '', state: any = null): void {
this._platformStrategy.replaceState(state, '', path, query);
replaceState(path: string, query: string = ''): void {
this._platformStrategy.replaceState(null, '', path, query);
}
/**

View File

@ -58,10 +58,7 @@ export const LOCATION_INITIALIZED = new InjectionToken<Promise<any>>('Location I
*
* @experimental
*/
export interface LocationChangeEvent {
type: string;
state: any;
}
export interface LocationChangeEvent { type: string; }
/**
* @experimental