SyntaxFix
Write A Post
Hire A Developer
Questions
to get this working for a date error I had to delete the error first before calling $setValidity for the form to be marked valid.
delete currentmodal.form.$error.date; currentmodal.form.$setValidity('myDate', true);