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

Method isValueSelected

src/cdk/listbox/listbox.ts:582–587  ·  view source on GitHub ↗

* Get whether the given value is selected. * @param value The value to get the selected state of

(value: T)

Source from the content-addressed store, hash-verified

580 * @param value The value to get the selected state of
581 */
582 isValueSelected(value: T) {
583 if (this._invalid) {
584 return false;
585 }
586 return this.selectionModel.isSelected(value);
587 }
588
589 /**
590 * Registers a callback to be invoked when the listbox's value changes from user input.

Callers 1

isSelectedMethod · 0.95

Calls 1

isSelectedMethod · 0.65

Tested by

no test coverage detected