Using $setPristine() and $setUntouched() for form resets
In AngularJS, $setPristine() and $setUntouched() are two important methods used to reset the state of form controls. These methods are helpful when you want to reset the form’s appearance and….