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

Method viewValue

src/material/core/option/option.ts:160–163  ·  view source on GitHub ↗

* The displayed value of the option. It is necessary to show the selected option in the * select's trigger.

()

Source from the content-addressed store, hash-verified

158 * select's trigger.
159 */
160 get viewValue(): string {
161 // TODO(kara): Add input property alternative for node envs.
162 return (this._text?.nativeElement.textContent || '').trim();
163 }
164
165 /** Selects the option. */
166 select(emitEvent = true): void {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected