File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import {
10
10
ChangeDetectionStrategy ,
11
11
ChangeDetectorRef ,
12
12
Component ,
13
- Host ,
14
13
Inject ,
15
14
ViewChild ,
16
15
Optional ,
@@ -69,10 +68,8 @@ export class DatepickerDemo {
69
68
export class CustomHeader < D > implements OnDestroy {
70
69
private _destroyed = new Subject < void > ( ) ;
71
70
72
- constructor ( @Host ( ) private _calendar : MatCalendar < D > ,
73
- private _dateAdapter : DateAdapter < D > ,
74
- @Inject ( MAT_DATE_FORMATS ) private _dateFormats : MatDateFormats ,
75
- cdr : ChangeDetectorRef ) {
71
+ constructor ( private _calendar : MatCalendar < D > , private _dateAdapter : DateAdapter < D > ,
72
+ @Inject ( MAT_DATE_FORMATS ) private _dateFormats : MatDateFormats , cdr : ChangeDetectorRef ) {
76
73
_calendar . stateChanges
77
74
. pipe ( takeUntil ( this . _destroyed ) )
78
75
. subscribe ( ( ) => cdr . markForCheck ( ) ) ;
You can’t perform that action at this time.
0 commit comments