angularjs: multiple values in a ng-switch-when

前端 未结 7 1738
一向
一向 2021-02-11 11:59

I have the following ngSwitch:

Wrong

7条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-11 12:32

    This is almost same with using a ng-if, but the advantage of this is that you can use ng-switch-when="true" or default or false multiple times within main ng-switch.

    Wrong Correct

    Live : http://jsfiddle.net/8yf15t2d/

提交回复
热议问题