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

Function _assignValue

src/material/datepicker/datepicker-input-base.ts:380–389  ·  view source on GitHub ↗

Assigns a value to the model.

(value: D | null)

Source from the content-addressed store, hash-verified

378
379 /** Assigns a value to the model. */
380 private _assignValue(value: D | null) {
381 // We may get some incoming values before the model was
382 // assigned. Save the value so that we can assign it later.
383 if (this._model) {
384 this._assignValueToModel(value);
385 this._pendingValue = null;
386 } else {
387 this._pendingValue = value;
388 }
389 }
390
391 /** Whether a value is considered valid. */
392 private _isValidValue(value: D | null): boolean {

Callers

nothing calls this directly

Calls 1

_assignValueToModelMethod · 0.45

Tested by

no test coverage detected