How to change class depending on filter result in AngularJS?

后端 未结 1 1143
感情败类
感情败类 2021-01-26 10:11

I cannot work out how to change the style of a class depending on the status/result of the filter. My code:

    
= 3\" >
1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-26 10:25

    You can assign your filter results to a intermediary variable and than use that variable to conditionally apply your class:

    
    

    0 讨论(0)
提交回复
热议问题