How can I use ng-switch to satisfy multiple, same conditions?

后端 未结 3 829
被撕碎了的回忆
被撕碎了的回忆 2021-01-23 09:14

I want to create a piece of HTML with AngularJS based on the authentication status.

I use ng-switch.

The issue is that I want to have multiple hits

3条回答
  •  醉梦人生
    2021-01-23 09:36

    Unfortunately the ng-switch directive only supports multiple matches since version 1.1.3 of AngularJS.

    See the changelog and this commit as reference.

提交回复
热议问题