X Tutup
Skip to content

Commit fc75220

Browse files
committed
fix(router): export ROUTER_LINK_DSL_PROVIDER and hide MockPopStateEvent
1 parent 00822c3 commit fc75220

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/angular2/router/router_link_dsl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ export {RouterLinkTransform} from 'angular2/src/router/router_link_transform';
3131
* <a [routerLink]="User[Modal]"> <!-- Same as <a [routerLink]="['User', ['Modal']]"> -->
3232
* ```
3333
*/
34-
const ROUTER_LINK_DSL_PROVIDER =
35-
CONST_EXPR(new Provider(TEMPLATE_TRANSFORMS, {useClass: RouterLinkTransform, multi: true}));
34+
export const ROUTER_LINK_DSL_PROVIDER =
35+
CONST_EXPR(new Provider(TEMPLATE_TRANSFORMS, {useClass: RouterLinkTransform, multi: true}));

modules/angular2/src/mock/mock_location_strategy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class MockLocationStrategy extends LocationStrategy {
1919

2020
simulatePopState(url: string): void {
2121
this.internalPath = url;
22-
ObservableWrapper.callEmit(this._subject, new MockPopStateEvent(this.path()));
22+
ObservableWrapper.callEmit(this._subject, new _MockPopStateEvent(this.path()));
2323
}
2424

2525
path(): string { return this.internalPath; }
@@ -66,7 +66,7 @@ export class MockLocationStrategy extends LocationStrategy {
6666
forward(): void { throw 'not implemented'; }
6767
}
6868

69-
class MockPopStateEvent {
69+
class _MockPopStateEvent {
7070
pop: boolean = true;
7171
type: string = 'popstate';
7272
constructor(public newUrl: string) {}

0 commit comments

Comments
 (0)
X Tutup