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

Method constructor

src/material/datepicker/month-view.ts:220–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218 _weekdays = signal<{long: string; narrow: string; id: number}[]>([]);
219
220 constructor() {
221 inject(_CdkPrivateStyleLoader).load(_VisuallyHiddenLoader);
222 if (typeof ngDevMode === 'undefined' || ngDevMode) {
223 if (!this._dateAdapter) {
224 throw createMissingDateImplError('DateAdapter');
225 }
226 if (!this._dateFormats) {
227 throw createMissingDateImplError('MAT_DATE_FORMATS');
228 }
229 }
230
231 this._activeDate = this._dateAdapter.today();
232 }
233
234 ngAfterContentInit() {
235 this._rerenderSubscription = this._dateAdapter.localeChanges

Callers

nothing calls this directly

Calls 3

loadMethod · 0.80
todayMethod · 0.45

Tested by

no test coverage detected