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

Method writeValue

src/material/list/selection-list.ts:244–250  ·  view source on GitHub ↗

Implemented as part of ControlValueAccessor.

(values: string[])

Source from the content-addressed store, hash-verified

242
243 /** Implemented as part of ControlValueAccessor. */
244 writeValue(values: string[]): void {
245 this._value = values;
246
247 if (this.options) {
248 this._setOptionsFromValues(values || []);
249 }
250 }
251
252 /** Implemented as a part of ControlValueAccessor. */
253 setDisabledState(isDisabled: boolean): void {

Callers

nothing calls this directly

Calls 1

_setOptionsFromValuesMethod · 0.95

Tested by

no test coverage detected