fix(router): remove private and internal annotations (#9745)
This commit is contained in:
parent
fb2539e1d5
commit
dabf214f17
|
@ -62,9 +62,6 @@ export class RouterLink {
|
|||
|
||||
urlTree: UrlTree;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
constructor(
|
||||
private router: Router, private route: ActivatedRoute,
|
||||
private locationStrategy: LocationStrategy) {}
|
||||
|
|
|
@ -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<RouterLink>;
|
||||
@ContentChildren(RouterLinkWithHref) private linksWithHrefs: QueryList<RouterLinkWithHref>;
|
||||
@ContentChildren(RouterLink) links: QueryList<RouterLink>;
|
||||
@ContentChildren(RouterLinkWithHref) linksWithHrefs: QueryList<RouterLinkWithHref>;
|
||||
|
||||
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) {
|
||||
|
|
|
@ -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<RouterLink>;
|
||||
linksWithHrefs: QueryList<RouterLinkWithHref>;
|
||||
routerLinkActive: string[] | string;
|
||||
constructor(router: Router, element: ElementRef, renderer: Renderer);
|
||||
ngAfterContentInit(): void;
|
||||
ngOnChanges(changes: {}): any;
|
||||
ngOnDestroy(): any;
|
||||
|
|
Loading…
Reference in New Issue