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

Method ngAfterContentInit

src/material/select/select.ts:643–658  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

641 }
642
643 ngAfterContentInit() {
644 this._initialized.next();
645 this._initialized.complete();
646
647 this._initKeyManager();
648
649 this._selectionModel.changed.pipe(takeUntil(this._destroy)).subscribe(event => {
650 event.added.forEach(option => option.select());
651 event.removed.forEach(option => option.deselect());
652 });
653
654 this.options.changes.pipe(startWith(null), takeUntil(this._destroy)).subscribe(() => {
655 this._resetOptions();
656 this._initializeSelection();
657 });
658 }
659
660 ngDoCheck() {
661 const newAriaLabelledby = this._getTriggerAriaLabelledby();

Callers

nothing calls this directly

Calls 6

_initKeyManagerMethod · 0.95
_resetOptionsMethod · 0.95
_initializeSelectionMethod · 0.95
selectMethod · 0.65
deselectMethod · 0.65
nextMethod · 0.45

Tested by

no test coverage detected