File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
projects/coreui-angular/src/lib Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1+ import { IsActiveMatchOptions } from '@angular/router' ;
2+
13export enum BreakpointInfix {
24 xs = 'xs' ,
35 sm = 'sm' ,
@@ -130,7 +132,7 @@ export interface INavLinkProps {
130132 skipLocationChange ?: boolean ;
131133 replaceUrl ?: boolean ;
132134 state ?: { [ k : string ] : any } ;
133- routerLinkActiveOptions ?: { exact : boolean } ;
135+ routerLinkActiveOptions ?: { exact : boolean } | IsActiveMatchOptions ;
134136 routerLinkActive ?: string | string [ ] ;
135137}
136138
Original file line number Diff line number Diff line change 3030 [state] ="item.linkProps?.state ?? {} "
3131 [routerLink] ="item.url "
3232 routerLinkActive ="active "
33+ [routerLinkActiveOptions] ="item.linkProps?.routerLinkActiveOptions ?? { exact: false } "
3334 (click) ="linkClicked() "
3435 >
3536<!-- [class.active]="linkActive"-->
Original file line number Diff line number Diff line change 1+ import { IsActiveMatchOptions } from '@angular/router' ;
2+
13export interface INavAttributes {
24 [ propName : string ] : any ;
35}
@@ -20,14 +22,14 @@ export interface INavLabel {
2022}
2123
2224export interface INavLinkProps {
23- queryParams ?: { [ k : string ] : any } ;
25+ queryParams ?: { [ k : string ] : any } ;
2426 fragment ?: string ;
25- queryParamsHandling ?: 'merge' | 'preserve' | '' ;
27+ queryParamsHandling ?: 'merge' | 'preserve' | '' | null ;
2628 preserveFragment ?: boolean ;
2729 skipLocationChange ?: boolean ;
2830 replaceUrl ?: boolean ;
29- state ?: { [ k : string ] : any } ;
30- routerLinkActiveOptions ?: { exact : boolean } ;
31+ state ?: { [ k : string ] : any } ;
32+ routerLinkActiveOptions ?: { exact : boolean } | IsActiveMatchOptions ;
3133 routerLinkActive ?: string | string [ ] ;
3234}
3335
You can’t perform that action at this time.
0 commit comments