fix(router): export ROUTER_LINK_DSL_PROVIDER and hide MockPopStateEvent
This commit is contained in:
parent
00822c3415
commit
fc75220d63
|
@ -31,5 +31,5 @@ export {RouterLinkTransform} from 'angular2/src/router/router_link_transform';
|
|||
* <a [routerLink]="User[Modal]"> <!-- Same as <a [routerLink]="['User', ['Modal']]"> -->
|
||||
* ```
|
||||
*/
|
||||
const ROUTER_LINK_DSL_PROVIDER =
|
||||
CONST_EXPR(new Provider(TEMPLATE_TRANSFORMS, {useClass: RouterLinkTransform, multi: true}));
|
||||
export const ROUTER_LINK_DSL_PROVIDER =
|
||||
CONST_EXPR(new Provider(TEMPLATE_TRANSFORMS, {useClass: RouterLinkTransform, multi: true}));
|
||||
|
|
|
@ -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) {}
|
||||
|
|
Loading…
Reference in New Issue