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

Method _setSelectedState

src/material/chips/chip-option.ts:195–209  ·  view source on GitHub ↗
(isSelected: boolean, isUserInput: boolean, emitEvent: boolean)

Source from the content-addressed store, hash-verified

193 }
194
195 _setSelectedState(isSelected: boolean, isUserInput: boolean, emitEvent: boolean) {
196 if (isSelected !== this.selected) {
197 this._selected = isSelected;
198
199 if (emitEvent) {
200 this.selectionChange.emit({
201 source: this,
202 isUserInput,
203 selected: this.selected,
204 });
205 }
206
207 this._changeDetectorRef.markForCheck();
208 }
209 }
210}

Callers 6

selectedMethod · 0.95
selectMethod · 0.95
deselectMethod · 0.95
selectViaInteractionMethod · 0.95
toggleSelectedMethod · 0.95
ngAfterContentInitMethod · 0.80

Calls 1

markForCheckMethod · 0.80

Tested by

no test coverage detected