我想知道是否可以在AngularJS中执行类似下面的代码。目标是通过所有ID> =搜索ID来过滤数组。我可以在内嵌搜索还是必须在JavaScript中以自定义过滤器的形式进行搜索?在AngularJS中按数字过滤数组
<div style="margin-top:5px;margin-left:30px;">
<div>
<div>ID</div>
<span class="glyphicon glyphicon-search"></span>
<input type="text" ng-model="listFoodItems.searchid" />
</div>
<table class="table table-responsive">
<thead>
<tr>
<th>ID</th>
<th>Description</th>
<th>Discount</th>
</tr>
</thead>
<tfoot></tfoot>
<tbody>
<tr ng-repeat="row in listFoodItems.fullitemdescs | filter: EntryId >= searchid">
<td>{{row.EntryId}}</td>
<td>{{row.ItemDesc}}</td>
<td>{{row.ItemDisc}}</td>
</tr>
</tbody>
</table>
</div>
你可以有DIV(NG-IF =“行。 EntryId> listFoodItems.searchid“)来包装tds –