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) {}