Angular: How to change the color of cell table if condition is true

后端 未结 3 1867
情深已故
情深已故 2021-02-14 10:35

I have an object which has a variable called changeColor. In my html table I want to change the cell color if changeColor is true. I am using angular.<

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-14 11:06

    You have to use ng-class

    
        {{list.value}}
        {{list.price}}
    
    

    CSS

    
    

提交回复
热议问题