angularjs: multiple values in a ng-switch-when

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

I have the following ngSwitch:

Wrong

7条回答
  •  时光说笑
    2021-02-11 12:31

    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?

提交回复
热议问题