File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 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 {
1313 @Input ( ) navbarBrandFull : any ;
1414 @Input ( ) navbarBrandMinimized : any ;
1515 @Input ( ) navbarBrandText : any = { icon : '🅲' , text : '🅲 CoreUI' } ;
16+ @Input ( ) navbarBrandHref : string = '' ; // deprecated, use navbarBrandRouterLink instead
1617 @Input ( ) navbarBrandRouterLink : any [ ] | string = '' ;
1718
1819 @Input ( ) sidebarToggler : string | boolean ;
@@ -36,6 +37,7 @@ export class AppHeaderComponent implements OnInit, OnDestroy {
3637 ngOnInit ( ) : void {
3738 this . isFixed ( this . fixed ) ;
3839 this . navbarBrandImg = Boolean ( this . navbarBrand || this . navbarBrandFull || this . navbarBrandMinimized ) ;
40+ this . navbarBrandRouterLink = this . navbarBrandRouterLink [ 0 ] ? this . navbarBrandRouterLink : this . navbarBrandHref ;
3941 }
4042
4143 ngOnDestroy ( ) : void {
You can’t perform that action at this time.
0 commit comments