1
- import { Component , Input , OnInit , OnDestroy , Inject , Renderer2 , HostBinding } from '@angular/core' ;
2
- import { DOCUMENT } from '@angular/common' ;
1
+ import { Component , Input , OnInit , OnDestroy , Inject , Renderer2 , HostBinding } from '@angular/core' ;
2
+ import { DOCUMENT , NgClass , NgIf } from '@angular/common' ;
3
+ import { RouterLink } from '@angular/router' ;
4
+ import { AsideToggleDirective , HtmlAttributesDirective , SidebarToggleDirective } from '../shared' ;
3
5
4
6
@Component ( {
5
7
selector : 'app-header, cui-header' ,
6
- templateUrl : './app-header.component.html'
8
+ templateUrl : './app-header.component.html' ,
9
+ standalone : true ,
10
+ imports : [ RouterLink , NgIf , NgClass , SidebarToggleDirective , HtmlAttributesDirective , AsideToggleDirective ]
7
11
} )
8
12
export class AppHeaderComponent implements OnInit , OnDestroy {
9
13
@@ -12,7 +16,7 @@ export class AppHeaderComponent implements OnInit, OnDestroy {
12
16
@Input ( ) navbarBrand : any ;
13
17
@Input ( ) navbarBrandFull : any ;
14
18
@Input ( ) navbarBrandMinimized : any ;
15
- @Input ( ) navbarBrandText : any = { icon : '🅲' , text : '🅲 CoreUI' } ;
19
+ @Input ( ) navbarBrandText : any = { icon : '🅲' , text : '🅲 CoreUI' } ;
16
20
@Input ( ) navbarBrandHref = '' ; // deprecated, use navbarBrandRouterLink instead
17
21
@Input ( ) navbarBrandRouterLink : any [ ] | string = '' ;
18
22
@@ -36,7 +40,7 @@ export class AppHeaderComponent implements OnInit, OnDestroy {
36
40
asideTogglerMobileClass = 'd-lg-none' ;
37
41
38
42
constructor (
39
- @Inject ( DOCUMENT ) private document : any ,
43
+ @Inject ( DOCUMENT ) private document : Document ,
40
44
private renderer : Renderer2 ,
41
45
) { }
42
46
0 commit comments