angularjs: multiple values in a ng-switch-when

前端 未结 5 1884
不知归路
不知归路 2021-02-11 12:03

I have the following ngSwitch:

Wrong

5条回答
  •  不知归路
    2021-02-11 12:27

    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/

提交回复
热议问题