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