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

Function updateControl

packages/forms/src/directives/shared.ts:284–289  ·  view source on GitHub ↗
(control: FormControl, dir: NgControl)

Source from the content-addressed store, hash-verified

282}
283
284function updateControl(control: FormControl, dir: NgControl): void {
285 if (control._pendingDirty) control.markAsDirty();
286 control.setValue(control._pendingValue, {emitModelToViewChange: false});
287 dir.viewToModelUpdate(control._pendingValue);
288 control._pendingChange = false;
289}
290
291function setUpModelChangePipeline(control: FormControl, dir: NgControl): void {
292 const onChange = (newValue?: any, emitModelEvent?: boolean) => {

Callers 2

setUpViewChangePipelineFunction · 0.85
setUpBlurPipelineFunction · 0.85

Calls 3

markAsDirtyMethod · 0.65
setValueMethod · 0.65
viewToModelUpdateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…