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

Function syncPendingControls

packages/forms/src/directives/shared.ts:385–397  ·  view source on GitHub ↗
(
  form: AbstractControl,
  directives: Set<NgControl> | NgControl[],
)

Source from the content-addressed store, hash-verified

383}
384
385export function syncPendingControls(
386 form: AbstractControl,
387 directives: Set<NgControl> | NgControl[],
388): void {
389 form._syncPendingControls();
390 directives.forEach((dir: NgControl) => {
391 const control = dir.control as FormControl;
392 if (control.updateOn === 'submit' && control._pendingChange) {
393 dir.viewToModelUpdate(control._pendingValue);
394 control._pendingChange = false;
395 }
396 });
397}
398
399// TODO: vsavkin remove it once https://github.com/angular/angular/issues/3011 is implemented
400export function selectValueAccessor(

Callers 2

onSubmitMethod · 0.90
onSubmitFunction · 0.90

Calls 3

_syncPendingControlsMethod · 0.65
forEachMethod · 0.45
viewToModelUpdateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…