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

前端 未结 7 1736
执念已碎
执念已碎 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:44

    You should be able to && the conditions:

    ng-disabled="condition1 && condition2"
    

提交回复
热议问题