How to change the css class name dynamically in angular 2

前端 未结 0 1707
情歌与酒
情歌与酒 2021-02-07 17:12

I have two CSS class name as follows

.icon_heart{
     color: #bdbdbd;
}

.icon_heart_red{
    color:#a6b7d4;;
}

My HTML has a heart icon

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