From fc75220d63004940f34cc8f2900fd0dcc53f1ecd Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 15 Dec 2015 09:42:27 -0800 Subject: [PATCH] fix(router): export ROUTER_LINK_DSL_PROVIDER and hide MockPopStateEvent --- modules/angular2/router/router_link_dsl.ts | 4 ++-- modules/angular2/src/mock/mock_location_strategy.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/angular2/router/router_link_dsl.ts b/modules/angular2/router/router_link_dsl.ts index 84bdfb6c9f..5f108b826f 100644 --- a/modules/angular2/router/router_link_dsl.ts +++ b/modules/angular2/router/router_link_dsl.ts @@ -31,5 +31,5 @@ export {RouterLinkTransform} from 'angular2/src/router/router_link_transform'; * * ``` */ -const ROUTER_LINK_DSL_PROVIDER = - CONST_EXPR(new Provider(TEMPLATE_TRANSFORMS, {useClass: RouterLinkTransform, multi: true})); \ No newline at end of file +export const ROUTER_LINK_DSL_PROVIDER = + CONST_EXPR(new Provider(TEMPLATE_TRANSFORMS, {useClass: RouterLinkTransform, multi: true})); diff --git a/modules/angular2/src/mock/mock_location_strategy.ts b/modules/angular2/src/mock/mock_location_strategy.ts index f15c710106..de7dcb746d 100644 --- a/modules/angular2/src/mock/mock_location_strategy.ts +++ b/modules/angular2/src/mock/mock_location_strategy.ts @@ -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) {}