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

Function writeValue

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

Implemented as part of ControlValueAccessor.

(value: D)

Source from the content-addressed store, hash-verified

289
290 /** Implemented as part of ControlValueAccessor. */
291 writeValue(value: D): void {
292 // We produce a different date object on each keystroke which can cause signal forms'
293 // interop logic to keep calling `writeValue` with the same value as the user is typing.
294 // Skip such cases since they can prevent the user from typing (see #32442 and #32475).
295 this._assignValueProgrammatically(value, value !== this.value);
296 }
297
298 /** Implemented as part of ControlValueAccessor. */
299 registerOnChange(fn: (value: any) => void): void {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected