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

Method constructor

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

Source from the content-addressed store, hash-verified

158 _selectedYear = signal<number | null>(null);
159
160 constructor() {
161 if (!this._dateAdapter && (typeof ngDevMode === 'undefined' || ngDevMode)) {
162 throw createMissingDateImplError('DateAdapter');
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