angularjs: multiple values in a ng-switch-when

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

I have the following ngSwitch:

Wrong

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

    For angular >=v1.5.10,

    You can do it by adding ng-switch-when-separator="|" to ng-switch-when node. see example in documentation.

    
    

    see discussion here https://github.com/angular/angular.js/issues/3410 Note, based on my experience it doesn't work with numbers...yet?

提交回复
热议问题