MCPcopy Create free account
hub / github.com/angular/angular / setUpFormContainer

Function setUpFormContainer

packages/forms/src/directives/shared.ts:316–323  ·  view source on GitHub ↗
(
  control: FormGroup | FormArray,
  dir: AbstractFormGroupDirective | FormArrayName,
)

Source from the content-addressed store, hash-verified

314 * @param dir Directive that provides view validators.
315 */
316export 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.

Callers 2

addFormGroupMethod · 0.90
_setUpFormContainerFunction · 0.90

Calls 2

_throwErrorFunction · 0.85
setUpValidatorsFunction · 0.85

Tested by

no test coverage detected