How to change the css class name dynamically in angular 2

前端 未结 0 1260
时光取名叫无心
时光取名叫无心 2021-02-07 16:57

I have two CSS class name as follows

.icon_heart{
     color: #bdbdbd;
}

.icon_heart_red{
    color:#a6b7d4;;
}

My HTML has a heart icon

相关标签:
回答
  • 消灭零回复
提交回复
热议问题