diff --git a/modules/@angular/router/src/directives/router_link.ts b/modules/@angular/router/src/directives/router_link.ts index 2f2f230053..fac4328f28 100644 --- a/modules/@angular/router/src/directives/router_link.ts +++ b/modules/@angular/router/src/directives/router_link.ts @@ -40,6 +40,9 @@ export class RouterLink { // the url displayed on the anchor element. @HostBinding() href: string; + /** + * @internal + */ constructor(private router: Router, private route: ActivatedRoute) {} @Input() @@ -51,8 +54,7 @@ export class RouterLink { } this.updateTargetUrlAndHref(); } - - + @HostListener("click") onClick(): boolean { // If no target, or if target is _self, prevent default browser behavior diff --git a/modules/@angular/router/src/directives/router_outlet.ts b/modules/@angular/router/src/directives/router_outlet.ts index 4fb9857621..dfa2e670d6 100644 --- a/modules/@angular/router/src/directives/router_outlet.ts +++ b/modules/@angular/router/src/directives/router_outlet.ts @@ -7,8 +7,11 @@ export class RouterOutlet { private activated:ComponentRef|null; public outletMap:RouterOutletMap; + /** + * @internal + */ constructor(parentOutletMap:RouterOutletMap, private location:ViewContainerRef, - @Attribute('name') name:string, public injector: Injector) { + @Attribute('name') name:string) { parentOutletMap.registerOutlet(name ? name : PRIMARY_OUTLET, this); } @@ -28,7 +31,7 @@ export class RouterOutlet { activate(factory: ComponentFactory, providers: ResolvedReflectiveProvider[], outletMap: RouterOutletMap): void { this.outletMap = outletMap; - let inj = ReflectiveInjector.fromResolvedProviders(providers, this.location.parentInjector); + const inj = ReflectiveInjector.fromResolvedProviders(providers, this.location.parentInjector); this.activated = this.location.createComponent(factory, this.location.length, inj, []); } } diff --git a/modules/@angular/router/src/router_state.ts b/modules/@angular/router/src/router_state.ts index 79e97cd321..2de22a310a 100644 --- a/modules/@angular/router/src/router_state.ts +++ b/modules/@angular/router/src/router_state.ts @@ -23,6 +23,9 @@ import { Type, ComponentFactory } from '@angular/core'; * ``` */ export class RouterState extends Tree { + /** + * @internal + */ constructor(root: TreeNode, public queryParams: Observable, public fragment: Observable, public snapshot: RouterStateSnapshot) { super(root); } @@ -68,6 +71,9 @@ export class ActivatedRoute { _futureSnapshot: ActivatedRouteSnapshot; snapshot: ActivatedRouteSnapshot; + /** + * @internal + */ constructor(public urlSegments: Observable, public params: Observable, public outlet: string, @@ -103,6 +109,9 @@ export class ActivatedRouteSnapshot { /** @internal **/ _lastUrlSegment: UrlSegment; + /** + * @internal + */ constructor(public urlSegments: UrlSegment[], public params: Params, public outlet: string, @@ -128,6 +137,9 @@ export class ActivatedRouteSnapshot { * ``` */ export class RouterStateSnapshot extends Tree { + /** + * @internal + */ constructor(root: TreeNode, public queryParams: Params, public fragment: string | null) { super(root); } diff --git a/modules/@angular/router/src/url_tree.ts b/modules/@angular/router/src/url_tree.ts index 84608c0542..1837aff783 100644 --- a/modules/@angular/router/src/url_tree.ts +++ b/modules/@angular/router/src/url_tree.ts @@ -10,12 +10,18 @@ export function createEmptyUrlTree() { * A URL in the tree form. */ export class UrlTree extends Tree { + /** + * @internal + */ constructor(root: TreeNode, public queryParameters: {[key: string]: string}, public fragment: string | null) { super(root); } } export class UrlSegment { + /** + * @internal + */ constructor(public path: string, public parameters: {[key: string]: string}, public outlet: string) {} toString() {