【发布时间】:2014-08-27 08:56:46
【问题描述】:
我试图在值为 null 或空数组(在 Firebug 中显示为 [])时执行 ng-hide。
我可以通过以下方式执行 null:
ng-hide="myData.Address == null"
但是当我尝试时:
ng-hide="myData.Address == null || myData.Address == []"
该值仍然出现。
【问题讨论】:
标签: angularjs angularjs-scope ng-show angular-ng-if ng-hide