MCPcopy Index your code
hub / github.com/angular/components / ngAfterContentInit

Method ngAfterContentInit

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

Source from the content-addressed store, hash-verified

639 }
640
641 ngAfterContentInit() {
642 this._initialized.next();
643 this._initialized.complete();
644
645 this._initKeyManager();
646
647 this._selectionModel.changed.pipe(takeUntil(this._destroy)).subscribe(event => {
648 event.added.forEach(option => option.select());
649 event.removed.forEach(option => option.deselect());
650 });
651
652 this.options.changes.pipe(startWith(null), takeUntil(this._destroy)).subscribe(() => {
653 this._resetOptions();
654 this._initializeSelection();
655 });
656 }
657
658 ngDoCheck() {
659 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