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

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

    Wanny is correct. The && operator doesn't work in HTML. With Angular, you must use the double pipes (||)for multiple conditions.

提交回复
热议问题