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