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

前端 未结 7 1718
执念已碎
执念已碎 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.

    0 讨论(0)
提交回复
热议问题