MCPcopy Index your code
hub / github.com/angular/angular / setValue

Method setValue

packages/forms/src/model/form_control.ts:240–240  ·  view source on GitHub ↗

* Sets a new value for the form control. * * @param value The new value for the control. * @param options Configuration options that determine how the control propagates changes * and emits events when the value changes. * The configuration options are passed to the {@link AbstractCon

(
    value: TValue,
    options?: {
      onlySelf?: boolean;
      emitEvent?: boolean;
      emitModelToViewChange?: boolean;
      emitViewToModelChange?: boolean;
    },
  )

Source from the content-addressed store, hash-verified

238 *
239 */
240 setValue(
241 value: TValue,
242 options?: {
243 onlySelf?: boolean;

Callers 4

patchValueMethod · 0.95
resetMethod · 0.95
_syncPendingControlsMethod · 0.95
ngOnInitMethod · 0.95

Implementers 1

SignalFormControlpackages/forms/signals/compat/src/sign

Calls 3

untrackedFunction · 0.90
forEachMethod · 0.45

Tested by

no test coverage detected