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

Method selected

src/material/list/list-option.ts:152–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 /** Whether the option is selected. */
151 @Input()
152 get selected(): boolean {
153 return this._selectionList.selectedOptions.isSelected(this);
154 }
155 set selected(value: BooleanInput) {
156 const isSelected = coerceBooleanProperty(value);
157

Callers

nothing calls this directly

Calls 4

_setSelectedMethod · 0.95
coerceBooleanPropertyFunction · 0.90
isSelectedMethod · 0.65
_reportValueChangeMethod · 0.65

Tested by

no test coverage detected