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

Method isSelected

src/cdk/listbox/listbox.ts:566–568  ·  view source on GitHub ↗

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

(option: CdkOption<T>)

Source from the content-addressed store, hash-verified

564 * @param option The option to get the selected state of
565 */
566 isSelected(option: CdkOption<T>) {
567 return this.isValueSelected(option.value);
568 }
569
570 /**
571 * Get whether the given option is active.

Callers

nothing calls this directly

Calls 1

isValueSelectedMethod · 0.95

Tested by

no test coverage detected