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;
|
urlTree: UrlTree;
|
||||||
|
|
||||||
/**
|
|
||||||
* @internal
|
|
||||||
*/
|
|
||||||
constructor(
|
constructor(
|
||||||
private router: Router, private route: ActivatedRoute,
|
private router: Router, private route: ActivatedRoute,
|
||||||
private locationStrategy: LocationStrategy) {}
|
private locationStrategy: LocationStrategy) {}
|
||||||
|
|
|
@ -59,17 +59,14 @@ import {RouterLink, RouterLinkWithHref} from './router_link';
|
||||||
*/
|
*/
|
||||||
@Directive({selector: '[routerLinkActive]'})
|
@Directive({selector: '[routerLinkActive]'})
|
||||||
export class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit {
|
export class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit {
|
||||||
@ContentChildren(RouterLink) private links: QueryList<RouterLink>;
|
@ContentChildren(RouterLink) links: QueryList<RouterLink>;
|
||||||
@ContentChildren(RouterLinkWithHref) private linksWithHrefs: QueryList<RouterLinkWithHref>;
|
@ContentChildren(RouterLinkWithHref) linksWithHrefs: QueryList<RouterLinkWithHref>;
|
||||||
|
|
||||||
private classes: string[] = [];
|
private classes: string[] = [];
|
||||||
private subscription: Subscription;
|
private subscription: Subscription;
|
||||||
|
|
||||||
@Input() private routerLinkActiveOptions: {exact: boolean} = {exact: false};
|
@Input() private routerLinkActiveOptions: {exact: boolean} = {exact: false};
|
||||||
|
|
||||||
/**
|
|
||||||
* @internal
|
|
||||||
*/
|
|
||||||
constructor(private router: Router, private element: ElementRef, private renderer: Renderer) {
|
constructor(private router: Router, private element: ElementRef, private renderer: Renderer) {
|
||||||
this.subscription = router.events.subscribe(s => {
|
this.subscription = router.events.subscribe(s => {
|
||||||
if (s instanceof NavigationEnd) {
|
if (s instanceof NavigationEnd) {
|
||||||
|
|
|
@ -137,12 +137,16 @@ export declare class RouterLink {
|
||||||
};
|
};
|
||||||
routerLink: any[] | string;
|
routerLink: any[] | string;
|
||||||
urlTree: UrlTree;
|
urlTree: UrlTree;
|
||||||
|
constructor(router: Router, route: ActivatedRoute, locationStrategy: LocationStrategy);
|
||||||
onClick(button: number, ctrlKey: boolean, metaKey: boolean): boolean;
|
onClick(button: number, ctrlKey: boolean, metaKey: boolean): boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit {
|
export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit {
|
||||||
|
links: QueryList<RouterLink>;
|
||||||
|
linksWithHrefs: QueryList<RouterLinkWithHref>;
|
||||||
routerLinkActive: string[] | string;
|
routerLinkActive: string[] | string;
|
||||||
|
constructor(router: Router, element: ElementRef, renderer: Renderer);
|
||||||
ngAfterContentInit(): void;
|
ngAfterContentInit(): void;
|
||||||
ngOnChanges(changes: {}): any;
|
ngOnChanges(changes: {}): any;
|
||||||
ngOnDestroy(): any;
|
ngOnDestroy(): any;
|
||||||
|
|
Loading…
Reference in New Issue