【发布时间】:2013-01-28 05:01:45
【问题描述】:
我需要过滤 ng-repeat 中的项目,以便只显示未出现在 alreadyAddedValues() 数组中的项目:
<ul class="dropdown-menu">
<li ng-repeat="v in values() | filter: { ????? } ">{{value.name}}</li>
</ul>
$scope.values() = function(){
................
}
$scope.alreadyAddedValues() = function()
{
//returns an array
}
搜索已经添加的值应该由value.shortName执行
【问题讨论】:
标签: angularjs repeater filtering