I need to deactivate a botton with ng-disabled
if there is any error in a form.
form(name="myForm", action="", method="post", novalidate)
input(type="submit", value="Register" ng-disabled="//I need to get true here")
I have tried things like ng-disabled=myform.$error
but the boton
is disabled even if there are no errors in the form
, do you have any idea how I can achieve that?