We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a88fecb commit 4c66467Copy full SHA for 4c66467
src/lib/datepicker/calendar.ts
@@ -47,21 +47,16 @@ export class MatCalendarHeader implements OnDestroy {
47
/** Subject that emits when the component has been destroyed. */
48
private _destroyed = new Subject<void>();
49
50
- private _intlChanges: Subscription;
51
-
52
constructor(@Host() public calendar: MatCalendar<any>,
53
- private _intl: MatDatepickerIntl,
+ intl: MatDatepickerIntl,
54
changeDetectorRef: ChangeDetectorRef) {
55
- this._intlChanges = _intl.changes.pipe(takeUntil(this._destroyed)).subscribe(
56
- () => changeDetectorRef.markForCheck()
57
- );
+ intl.changes.pipe(takeUntil(this._destroyed)).subscribe(() => changeDetectorRef.markForCheck());
58
}
59
60
ngOnDestroy() {
61
this._destroyed.next();
62
this._destroyed.complete();
63
64
65
66
67
/**
0 commit comments