( control: FormGroup | FormArray, dir: AbstractFormGroupDirective | FormArrayName, )
| 313 | * @param dir Directive that provides view validators. |
| 314 | */ |
| 315 | export function setUpFormContainer( |
| 316 | control: FormGroup | FormArray, |
| 317 | dir: AbstractFormGroupDirective | FormArrayName, |
| 318 | ) { |
| 319 | if (control == null && (typeof ngDevMode === 'undefined' || ngDevMode)) |
| 320 | _throwError(dir, 'Cannot find control with'); |
| 321 | setUpValidators(control, dir); |
| 322 | } |
| 323 | |
| 324 | /** |
| 325 | * Reverts the setup performed by the `setUpFormContainer` function. |
no test coverage detected
searching dependent graphs…