diff --git a/modules/@angular/router/src/directives/router_link.ts b/modules/@angular/router/src/directives/router_link.ts index 4ac86215a1..e4d0cff442 100644 --- a/modules/@angular/router/src/directives/router_link.ts +++ b/modules/@angular/router/src/directives/router_link.ts @@ -62,9 +62,6 @@ export class RouterLink { urlTree: UrlTree; - /** - * @internal - */ constructor( private router: Router, private route: ActivatedRoute, private locationStrategy: LocationStrategy) {} diff --git a/modules/@angular/router/src/directives/router_link_active.ts b/modules/@angular/router/src/directives/router_link_active.ts index 58bff8a109..51afdd1b1b 100644 --- a/modules/@angular/router/src/directives/router_link_active.ts +++ b/modules/@angular/router/src/directives/router_link_active.ts @@ -59,17 +59,14 @@ import {RouterLink, RouterLinkWithHref} from './router_link'; */ @Directive({selector: '[routerLinkActive]'}) export class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit { - @ContentChildren(RouterLink) private links: QueryList; - @ContentChildren(RouterLinkWithHref) private linksWithHrefs: QueryList; + @ContentChildren(RouterLink) links: QueryList; + @ContentChildren(RouterLinkWithHref) linksWithHrefs: QueryList; private classes: string[] = []; private subscription: Subscription; @Input() private routerLinkActiveOptions: {exact: boolean} = {exact: false}; - /** - * @internal - */ constructor(private router: Router, private element: ElementRef, private renderer: Renderer) { this.subscription = router.events.subscribe(s => { if (s instanceof NavigationEnd) { diff --git a/tools/public_api_guard/router/index.d.ts b/tools/public_api_guard/router/index.d.ts index c8472d88d0..690d1a210f 100644 --- a/tools/public_api_guard/router/index.d.ts +++ b/tools/public_api_guard/router/index.d.ts @@ -137,12 +137,16 @@ export declare class RouterLink { }; routerLink: any[] | string; urlTree: UrlTree; + constructor(router: Router, route: ActivatedRoute, locationStrategy: LocationStrategy); onClick(button: number, ctrlKey: boolean, metaKey: boolean): boolean; } /** @stable */ export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit { + links: QueryList; + linksWithHrefs: QueryList; routerLinkActive: string[] | string; + constructor(router: Router, element: ElementRef, renderer: Renderer); ngAfterContentInit(): void; ngOnChanges(changes: {}): any; ngOnDestroy(): any;