ng-if指令中的AngularJS大写

前端之家收集整理的这篇文章主要介绍了ng-if指令中的AngularJS大写前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
为什么低于一个不起作用?我需要将IsValue转换为大写值,然后需要使用NO值进行检查.我该怎么做?
<td class="red-color" ng-if="item.IsValue | uppercase == 'NO'">{{item.IsValue}}</td>
在比较值之前,确保应用了大写过滤器(using()):
<td class="red-color" ng-if="(item.IsValue | uppercase) == 'NO'">{{item.IsValue}}</td>

这是一个working plunker.

原文链接:https://www.f2er.com/angularjs/141027.html

猜你在找的Angularjs相关文章