File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export class AppHeaderComponent implements OnInit, OnDestroy {
13
13
@Input ( ) navbarBrandFull : any ;
14
14
@Input ( ) navbarBrandMinimized : any ;
15
15
@Input ( ) navbarBrandText : any = { icon : '🅲' , text : '🅲 CoreUI' } ;
16
+ @Input ( ) navbarBrandHref : string = '' ; // deprecated, use navbarBrandRouterLink instead
16
17
@Input ( ) navbarBrandRouterLink : any [ ] | string = '' ;
17
18
18
19
@Input ( ) sidebarToggler : string | boolean ;
@@ -36,6 +37,7 @@ export class AppHeaderComponent implements OnInit, OnDestroy {
36
37
ngOnInit ( ) : void {
37
38
this . isFixed ( this . fixed ) ;
38
39
this . navbarBrandImg = Boolean ( this . navbarBrand || this . navbarBrandFull || this . navbarBrandMinimized ) ;
40
+ this . navbarBrandRouterLink = this . navbarBrandRouterLink [ 0 ] ? this . navbarBrandRouterLink : this . navbarBrandHref ;
39
41
}
40
42
41
43
ngOnDestroy ( ) : void {
You can’t perform that action at this time.
0 commit comments