fix(router): make routerLinkActiveOptions public (#10758)
This commit is contained in:
parent
398bbb6aa9
commit
73c0a9daaf
|
@ -66,7 +66,7 @@ export class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit
|
||||||
private classes: string[] = [];
|
private classes: string[] = [];
|
||||||
private subscription: Subscription;
|
private subscription: Subscription;
|
||||||
|
|
||||||
@Input() private routerLinkActiveOptions: {exact: boolean} = {exact: false};
|
@Input() routerLinkActiveOptions: {exact: boolean} = {exact: false};
|
||||||
|
|
||||||
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 => {
|
||||||
|
|
|
@ -210,6 +210,9 @@ export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterCont
|
||||||
links: QueryList<RouterLink>;
|
links: QueryList<RouterLink>;
|
||||||
linksWithHrefs: QueryList<RouterLinkWithHref>;
|
linksWithHrefs: QueryList<RouterLinkWithHref>;
|
||||||
routerLinkActive: string[] | string;
|
routerLinkActive: string[] | string;
|
||||||
|
routerLinkActiveOptions: {
|
||||||
|
exact: boolean;
|
||||||
|
};
|
||||||
constructor(router: Router, element: ElementRef, renderer: Renderer);
|
constructor(router: Router, element: ElementRef, renderer: Renderer);
|
||||||
ngAfterContentInit(): void;
|
ngAfterContentInit(): void;
|
||||||
ngOnChanges(changes: {}): any;
|
ngOnChanges(changes: {}): any;
|
||||||
|
|
Loading…
Reference in New Issue