* Returns the function that is used to determine the validity of this control synchronously. * If multiple validators have been added, this will be a single composed function. * See `Validators.compose()` for additional information.
()
| 597 | * See `Validators.compose()` for additional information. |
| 598 | */ |
| 599 | get validator(): ValidatorFn | null { |
| 600 | return this._composedValidatorFn; |
| 601 | } |
| 602 | set validator(validatorFn: ValidatorFn | null) { |
| 603 | this._rawValidators = this._composedValidatorFn = validatorFn; |
| 604 | this._updateHasRequiredValidator(); |