I have a button and ng-style that depends on frm.mybtn.$error.required
like this:
ng-style="frm.mybtn.$error.required?{'border-color':'#a94442'}:''"
and I set the value of the button from the javascript,
But angular didn't notice that the required is now false
and frm.mybtn.$error.required
is still set to true