Adding multiple class using ng-class

后端 未结 11 1539
不知归路
不知归路 2020-11-22 12:47

Can we have multiple expression to add multiple ng-class ?

for eg.

11条回答
  •  面向向阳花
    2020-11-22 13:09

    Here is an example comparing multiple angular-ui-router states using the OR || operator:

  • It will give the li the classes warning and/or active, depening on whether the conditions are met.

提交回复
热议问题