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

Function _assignAsyncValidators

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

* Internal implementation of the `setAsyncValidators` method. Needs to be separated out into a * different method, because it is called in the constructor and it can break cases where * a control is extended.

(validators: AsyncValidatorFn | AsyncValidatorFn[] | null)

Source from the content-addressed store, hash-verified

1799 * a control is extended.
1800 */
1801 private _assignAsyncValidators(validators: AsyncValidatorFn | AsyncValidatorFn[] | null): void {
1802 this._rawAsyncValidators = Array.isArray(validators) ? validators.slice() : validators;
1803 this._composedAsyncValidatorFn = coerceToAsyncValidator(this._rawAsyncValidators);
1804 }
1805
1806 private _updateHasRequiredValidator(): void {
1807 untracked(() => this._hasRequired.set(this.hasValidator(Validators.required)));

Callers

nothing calls this directly

Calls 2

coerceToAsyncValidatorFunction · 0.85
isArrayMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…