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

Function constructor

src/material/datepicker/datepicker-input-base.ts:248–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246 protected _lastValueValid = false;
247
248 constructor() {
249 if (typeof ngDevMode === 'undefined' || ngDevMode) {
250 if (!this._dateAdapter) {
251 throw createMissingDateImplError('DateAdapter');
252 }
253 if (!this._dateFormats) {
254 throw createMissingDateImplError('MAT_DATE_FORMATS');
255 }
256 }
257
258 // Update the displayed date when the locale changes.
259 this._localeSubscription = this._dateAdapter.localeChanges.subscribe(() => {
260 this._assignValueProgrammatically(this.value, true);
261 });
262 }
263
264 ngAfterViewInit() {
265 this._isInitialized = true;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected