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

Function constructor

src/material/datepicker/datepicker-base.ts:550–558  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

548 private readonly _changeDetectorRef = inject(ChangeDetectorRef);
549
550 constructor() {
551 if (!this._dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
552 throw createMissingDateImplError('DateAdapter');
553 }
554
555 this._model.selectionChanged.subscribe(() => {
556 this._changeDetectorRef.markForCheck();
557 });
558 }
559
560 ngOnChanges(changes: SimpleChanges<this>) {
561 const positionChange = changes['xPosition'] || changes['yPosition'];

Callers

nothing calls this directly

Calls 2

markForCheckMethod · 0.80

Tested by

no test coverage detected