angularjs if statements?

后端 未结 8 1835
暖寄归人
暖寄归人 2021-01-04 20:06

So I\'m running through the tutorial for AngularJS:

I have an array defined in the controller and i\'m returning different points in the array by calling when i\'m l

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-04 20:30

    In the case where your priority would be a label, you could create a switch filter to use inside of ng-class as shown in a previous SO answer : https://stackoverflow.com/a/8309832/1036025 (for the switch filter code)

    ...

提交回复
热议问题