In Angular's reactive forms, the method used to mark a control as touched is called ______.

  • markAsDirty()
  • markAsTouched()
  • setDirty()
  • setTouched()
In Angular's reactive forms, the method used to mark a control as touched is called markAsTouched(). This method is used to indicate that a form control has been interacted with by the user. It's commonly used for validation and to show error messages for untouched controls.
Add your answer
Loading...

Leave a comment

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