()
| 416 | readonly stateChanges = new Subject<void>(); |
| 417 | |
| 418 | constructor() { |
| 419 | if (typeof ngDevMode === 'undefined' || ngDevMode) { |
| 420 | if (!this._dateAdapter) { |
| 421 | throw createMissingDateImplError('DateAdapter'); |
| 422 | } |
| 423 | |
| 424 | if (!this._dateFormats) { |
| 425 | throw createMissingDateImplError('MAT_DATE_FORMATS'); |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | this._intlChanges = inject(MatDatepickerIntl).changes.subscribe(() => { |
| 430 | this._changeDetectorRef.markForCheck(); |
| 431 | this.stateChanges.next(); |
| 432 | }); |
| 433 | } |
| 434 | |
| 435 | ngAfterContentInit() { |
| 436 | this._calendarHeaderPortal = new ComponentPortal(this.headerComponent || MatCalendarHeader); |
nothing calls this directly
no test coverage detected