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

Function cleanUpFormContainer

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

Source from the content-addressed store, hash-verified

330 * @returns true if a control was updated as a result of this action.
331 */
332export function cleanUpFormContainer(
333 control: FormGroup | FormArray,
334 dir: AbstractFormGroupDirective | FormArrayName,
335): boolean {
336 return cleanUpValidators(control, dir);
337}
338
339function _noControlError(dir: NgControl) {
340 return _throwError(dir, 'There is no FormControl instance attached to form control element with');

Callers 1

_cleanUpFormContainerFunction · 0.90

Calls 1

cleanUpValidatorsFunction · 0.85

Tested by

no test coverage detected