angularjs: multiple values in a ng-switch-when -


i have following ngswitch:

<p ng-switch="status">     <span ng-switch-when="wrong|incorrect">        wrong     </span>     <span ng-switch-default>        correct     </span> </p> 

as can see, have text wrong 2 options wrong , correct. have tried (as can see) use pipe |, doesn't work. suggestions ?

for angular >=v1.5.10,

you can adding ng-switch-when-separator="|" ng-when node. see example in documentation.

<span ng-switch-when="wrong|incorrect" ng-switch-when-separator="|"> 

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


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -