To reset the state and value of a form, you would call the ______ method on a FormGroup or FormControl instance.

  • clear()
  • erase()
  • reset()
  • restart()
To reset the state and value of a form, you would call the reset() method on a FormGroup or FormControl instance in Angular's Reactive Forms. This method clears any user-entered data and sets the form control or group back to its initial state. It's a useful function for implementing features like form reset buttons in web applications.
Add your answer
Loading...

Leave a comment

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