angular中的:class的使用

[ngClass]="{'green': flag, 'orange': !flag}"
原文地址:https://www.cnblogs.com/itcast-guoke/p/14239170.html