Resetting the Form
Understand how to reset reactive forms in Angular by using the reset method on FormGroup. Learn that this method clears form control values to null and does not restore default values, helping you manage form state effectively.
We'll cover the following...
We'll cover the following...
We’re going to learn about one more feature before we wrap things up with reactive forms. Sometimes it may be necessary to reset a form. There’s a function available on the form group called reset(). As you would imagine, this will reset every input in the form.
Let’s update the app.component.html ...