Angularjs Form Reset - Then a reset button will clear off the input field, returning it to a clean state. We could also say we will return the form from its dirty state to its pristine state. Web for just to reset the form use reset() method. Web how to reset a form to $setpristine state in angularjs. It resets the form and also resets the submit status solving your issue. To solve this use resetform() method. First, let us create an html structure, including an input field where we will type in some words.
Web how to reset a form to $setpristine state in angularjs. To solve this use resetform() method. Web for just to reset the form use reset() method. It resets the form and also resets the submit status solving your issue. We could also say we will return the form from its dirty state to its pristine state. Then a reset button will clear off the input field, returning it to a clean state. First, let us create an html structure, including an input field where we will type in some words.