( controls: AbstractControl[], )
| 74 | * @param controls A collection of controls |
| 75 | */ |
| 76 | export function currentStateOf( |
| 77 | controls: AbstractControl[], |
| 78 | ): {errors: any; pending: boolean; status: string}[] { |
| 79 | return controls.map((c) => ({errors: c.errors, pending: c.pending, status: c.status})); |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * Returns an `EventEmitter` emitting the default error `{'async': true}` |
no test coverage detected
searching dependent graphs…