MCPcopy Create free account
hub / github.com/angular/components / constructor

Method constructor

src/material/datepicker/calendar.ts:418–433  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 3

markForCheckMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected