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

Method selected

src/material/select/select.ts:862–864  ·  view source on GitHub ↗

The currently selected option.

()

Source from the content-addressed store, hash-verified

860
861 /** The currently selected option. */
862 get selected(): MatOption | MatOption[] {
863 return this.multiple ? this._selectionModel?.selected || [] : this._selectionModel?.selected[0];
864 }
865
866 /** The value displayed in the trigger. */
867 get triggerValue(): string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected