MCPcopy Index your code
hub / github.com/angular/angular / setUpFormContainer

Function setUpFormContainer

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

Source from the content-addressed store, hash-verified

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

Callers 2

addFormGroupMethod · 0.90
_setUpFormContainerFunction · 0.90

Calls 2

_throwErrorFunction · 0.85
setUpValidatorsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…