Does anyone know if its possible to have ng-disabled use 2 expressions. I would like to disable the buttton when its clicked, this is to stop DOUBLE POSTBACK but i would also like it disabled until the form is valid i.e.
<button ng-disabled="!myForm.$valid" ...............
But what about double postback.
Is this possible ?
Thanks in advance
You can do something like:
ng-disabled="condition1 || condition2"
condition1 would be your validation and the contition2 would be when the button has been clicked. Setting either to true will disable the button.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With