My situation involves using a button with ng-style that relies on frm.mybtn.$error.required
as follows:
ng-style="frm.mybtn.$error.required?{'border-color':'#a94442'}:''"
I am updating the value of the button from JavaScript, however Angular does not recognize that the required condition is now false. As a result, frm.mybtn.$error.required
remains true even after it should have been set to false.