angularjs - Several conditions for ng-class -
is ok write this?
<button href="#" ng-class="{'disabled' : form.mail.$invalid && form.firstname.$invalid }"></button> i thought right, doesn't work. have form, , need disable send button if these conditions aren't ok.
if write 1 condition, works.
you can use (, ) on condition:
ng-class="{'disabled': (form.mail.$invalid && form.firstname.$invalid)}" as side note, far know code should works well.
Comments
Post a Comment