( form: AbstractControl, directives: Set<NgControl> | NgControl[], )
| 383 | } |
| 384 | |
| 385 | export 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 |
| 400 | export function selectValueAccessor( |
no test coverage detected
searching dependent graphs…