The method setValidators() and clearValidators() belong to the ______ class in Angular's Reactive Forms.

  • AbstractControl
  • FormControl
  • FormGroup
  • FormValidator
The methods setValidators() and clearValidators() belong to the AbstractControl class in Angular's Reactive Forms. AbstractControl is a common base class for FormControl, FormGroup, and FormArray. These methods allow developers to set and clear validation functions for form controls, providing control over input validation in reactive forms.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *