How do I add multiple conditions to “ng-disabled”?

前端 未结 7 1721
执念已碎
执念已碎 2021-02-05 00:27

I need to check that two conditions are both true before enabling a button:

Here is an example:

7条回答
  •  余生分开走
    2021-02-05 00:47

    Make sure you wrap the condition in the correct precedence

    ng-disabled="((!product.img) || (!product.name))"
    

提交回复
热议问题