AngularJS: ng-disabled skip more than 1 expression?

Does anyone know if its ng-disabled can use 2 expressions. I would like to disable the prefix when it was clicked to stop the DOUBLE POSTBACK, but I would also like it to be disabled until the form is valid ie

<button ng-disabled="!myForm.$valid" ............... 

But what about double reverse gear.

Is it possible?

Thanks in advance

+7
angularjs angularjs-scope
source share
1 answer

You can do something like:

 ng-disabled="condition1 || condition2" 

condition1 will be your check, and contition2 will be at the click of a button. Setting it to true will disable the button.

+19
source share

All Articles