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

Method ngOnChanges

src/material/select/select.ts:695–709  ·  view source on GitHub ↗
(changes: SimpleChanges<this>)

Source from the content-addressed store, hash-verified

693 }
694
695 ngOnChanges(changes: SimpleChanges<this>) {
696 // Updating the disabled state is handled by the input, but we need to additionally let
697 // the parent form field know to run change detection when the disabled state changes.
698 if (changes['disabled'] || changes['userAriaDescribedBy']) {
699 this.stateChanges.next();
700 }
701
702 if (changes['typeaheadDebounceInterval'] && this._keyManager) {
703 this._keyManager.withTypeAhead(this.typeaheadDebounceInterval);
704 }
705
706 if (changes['panelClass'] && this.panelClass instanceof Set) {
707 this.panelClass = Array.from(this.panelClass);
708 }
709 }
710
711 ngOnDestroy() {
712 this._cleanupDetach?.();

Callers

nothing calls this directly

Calls 2

withTypeAheadMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected