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

Method ngAfterContentInit

src/material/datepicker/calendar.ts:435–441  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

433 }
434
435 ngAfterContentInit() {
436 this._calendarHeaderPortal = new ComponentPortal(this.headerComponent || MatCalendarHeader);
437 this.activeDate = this.startAt || this._dateAdapter.today();
438
439 // Assign to the private property since we don't want to move focus on init.
440 this._currentView = this.startView;
441 }
442
443 ngAfterViewChecked() {
444 if (this._moveFocusOnNextTick) {

Callers

nothing calls this directly

Calls 1

todayMethod · 0.45

Tested by

no test coverage detected