AngularJS

Manually Set Validity of Form Attribute

No need to delete error from the $error object manually. Simply use:

formObj[inputName].$setValidity(errorName, true);
Standard