fix(router): export ROUTER_LINK_DSL_PROVIDER and hide MockPopStateEvent
This commit is contained in:
@ -19,7 +19,7 @@ export class MockLocationStrategy extends LocationStrategy {
|
||||
|
||||
simulatePopState(url: string): void {
|
||||
this.internalPath = url;
|
||||
ObservableWrapper.callEmit(this._subject, new MockPopStateEvent(this.path()));
|
||||
ObservableWrapper.callEmit(this._subject, new _MockPopStateEvent(this.path()));
|
||||
}
|
||||
|
||||
path(): string { return this.internalPath; }
|
||||
@ -66,7 +66,7 @@ export class MockLocationStrategy extends LocationStrategy {
|
||||
forward(): void { throw 'not implemented'; }
|
||||
}
|
||||
|
||||
class MockPopStateEvent {
|
||||
class _MockPopStateEvent {
|
||||
pop: boolean = true;
|
||||
type: string = 'popstate';
|
||||
constructor(public newUrl: string) {}
|
||||
|
Reference in New Issue
Block a user