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