()
| 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; |
nothing calls this directly
no test coverage detected