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

Function _updateTreeValidity

packages/forms/src/model/abstract_model.ts:1453–1456  ·  view source on GitHub ↗

@internal

(opts: {emitEvent?: boolean} = {emitEvent: true})

Source from the content-addressed store, hash-verified

1451
1452 /** @internal */
1453 _updateTreeValidity(opts: {emitEvent?: boolean} = {emitEvent: true}): void {
1454 this._forEachChild((ctrl: AbstractControl) => ctrl._updateTreeValidity(opts));
1455 this.updateValueAndValidity({onlySelf: true, emitEvent: opts.emitEvent});
1456 }
1457
1458 private _setInitialStatus() {
1459 this.status = this._allControlsDisabled() ? DISABLED : VALID;

Callers

nothing calls this directly

Calls 2

_forEachChildMethod · 0.65

Tested by

no test coverage detected