* Internal implementation of the `setValidators` 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: ValidatorFn | ValidatorFn[] | null)
| 1788 | * a control is extended. |
| 1789 | */ |
| 1790 | private _assignValidators(validators: ValidatorFn | ValidatorFn[] | null): void { |
| 1791 | this._rawValidators = Array.isArray(validators) ? validators.slice() : validators; |
| 1792 | this._composedValidatorFn = coerceToValidator(this._rawValidators); |
| 1793 | this._updateHasRequiredValidator(); |
| 1794 | } |
| 1795 | |
| 1796 | /** |
| 1797 | * Internal implementation of the `setAsyncValidators` method. Needs to be separated out into a |
nothing calls this directly
no test coverage detected
searching dependent graphs…