When it comes to form validation on a specific text field, I am dynamically changing ng-valid to ng-invalid using either
$setValidity('', false);
or
$valid = false
The issue is that I want to revert the changes made by the above statements as soon as the user finishes retyping another value that meets standard form validation requirements. Currently, the changes made by these statements remain in effect. How can I undo them when needed? Thank you.