标签: javascript jquery asp.net angularjs asp.net-mvc
我正在尝试将CSS类有条件地应用于tr,但它会在条件为true的情况下应用该类。这是我的HTML:
tr
true
<tr ng-repeat="g in assgnedHeads" ng-if="g.billHeadShortForm!='FEC' && g.billHeadShortForm!='FDG' && g.billHeadShortForm!='GL'" ng-class="{'mapped-head':g.pkno!=0}">