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

Function setUpViewChangePipeline

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

Source from the content-addressed store, hash-verified

263}
264
265function setUpViewChangePipeline(control: FormControl, dir: NgControl): void {
266 dir.valueAccessor!.registerOnChange((newValue: any) => {
267 control._pendingValue = newValue;
268 control._pendingChange = true;
269 control._pendingDirty = true;
270
271 if (control.updateOn === 'change') updateControl(control, dir);
272 });
273}
274
275function setUpBlurPipeline(control: FormControl, dir: NgControl): void {
276 dir.valueAccessor!.registerOnTouched(() => {

Callers 1

Calls 2

updateControlFunction · 0.85
registerOnChangeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…