Skip to content

Commit 30de2db

Browse files
committed
cleanup(router): make analyzer happy
Closes angular#8220
1 parent 602641d commit 30de2db

17 files changed

+174
-646
lines changed

modules/angular2/alt_router.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,15 @@
55
*/
66

77
export {Router, RouterOutletMap} from './src/alt_router/router';
8-
export {RouteSegment} from './src/alt_router/segments';
8+
export {RouteSegment, UrlSegment, Tree} from './src/alt_router/segments';
99
export {Routes} from './src/alt_router/metadata/decorators';
1010
export {Route} from './src/alt_router/metadata/metadata';
1111
export {
1212
RouterUrlSerializer,
1313
DefaultRouterUrlSerializer
1414
} from './src/alt_router/router_url_serializer';
1515
export {OnActivate} from './src/alt_router/interfaces';
16-
17-
export {Location} from './src/alt_router/location/location';
18-
export {LocationStrategy} from './src/alt_router/location/location_strategy';
19-
export {PathLocationStrategy} from './src/alt_router/location/path_location_strategy';
20-
export {HashLocationStrategy} from './src/alt_router/location/hash_location_strategy';
21-
export {PlatformLocation} from './src/alt_router/location/platform_location';
22-
export {BrowserPlatformLocation} from './src/alt_router/location/browser_platform_location';
16+
export {ROUTER_PROVIDERS} from './src/alt_router/router_providers';
2317

2418
import {RouterOutlet} from './src/alt_router/directives/router_outlet';
2519
import {RouterLink} from './src/alt_router/directives/router_link';

modules/angular2/src/alt_router/directives/router_link.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class RouterLink implements OnDestroy {
2828

2929
@HostBinding() private href: string;
3030

31-
constructor(private _router: Router, private _segment: RouteSegment) {
31+
constructor(private _router: Router) {
3232
this._subscription = ObservableWrapper.subscribe(_router.changes, (_) => {
3333
this._targetUrl = _router.urlTree;
3434
this._updateTargetUrlAndHref();
@@ -53,7 +53,7 @@ export class RouterLink implements OnDestroy {
5353
}
5454

5555
private _updateTargetUrlAndHref(): void {
56-
this._targetUrl = link(this._segment, this._router.urlTree, this._changes);
56+
this._targetUrl = link(null, this._router.urlTree, this._changes);
5757
this.href = this._router.serializeUrl(this._targetUrl);
5858
}
5959
}

modules/angular2/src/alt_router/location/browser_platform_location.ts

Lines changed: 0 additions & 57 deletions
This file was deleted.

modules/angular2/src/alt_router/location/hash_location_strategy.ts

Lines changed: 0 additions & 101 deletions
This file was deleted.

modules/angular2/src/alt_router/location/location.ts

Lines changed: 0 additions & 179 deletions
This file was deleted.

0 commit comments

Comments
 (0)