标签:
.blue{ color: blue } .bold{ font-weight: bold; } .large{ font-size: 40px; }
ngClass can accept an array:
<div ng-claass="[blue, large, boild]">ngClass</div>
ngClass can take a string:
<div ng-claass="blue large boild">ngClass</div>
ngClass can take object:
<div ng-class="{bold: vm.shouldBold}" >ngClasss</div>
[AngularJS] Using AngularJS's ngClass
标签:
原文地址:http://www.cnblogs.com/Answer1215/p/5118625.html