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

Method constructor

src/material/datepicker/year-view.ts:155–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153 _selectedMonth = signal<number | null>(null);
154
155 constructor() {
156 if (typeof ngDevMode === 'undefined' || ngDevMode) {
157 if (!this._dateAdapter) {
158 throw createMissingDateImplError('DateAdapter');
159 }
160 if (!this._dateFormats) {
161 throw createMissingDateImplError('MAT_DATE_FORMATS');
162 }
163 }
164
165 this._activeDate = this._dateAdapter.today();
166 }
167
168 ngAfterContentInit() {
169 this._rerenderSubscription = this._dateAdapter.localeChanges

Callers

nothing calls this directly

Calls 2

todayMethod · 0.45

Tested by

no test coverage detected