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

Method ngOnChanges

src/material/list/selection-list.ts:189–201  ·  view source on GitHub ↗
(changes: SimpleChanges<this>)

Source from the content-addressed store, hash-verified

187 }
188
189 ngOnChanges(changes: SimpleChanges<this>) {
190 const disabledChanges = changes['disabled'];
191 const disableRippleChanges = changes['disableRipple'];
192 const hideSingleSelectionIndicatorChanges = changes['hideSingleSelectionIndicator'];
193
194 if (
195 (disableRippleChanges && !disableRippleChanges.firstChange) ||
196 (disabledChanges && !disabledChanges.firstChange) ||
197 (hideSingleSelectionIndicatorChanges && !hideSingleSelectionIndicatorChanges.firstChange)
198 ) {
199 this._markOptionsForCheck();
200 }
201 }
202
203 ngOnDestroy() {
204 this._keyManager?.destroy();

Callers

nothing calls this directly

Calls 1

_markOptionsForCheckMethod · 0.95

Tested by

no test coverage detected