2

我有一个过滤器,它通过一个 ng-repeat 列表过滤一些标准。

我如何查看过滤服务为控制器内部的更改创建的 RESULTING 数组?

完整的问题和描述在这里Angular factory filter - Can't get data pass to the filter in the first answer。

4

1 回答 1

3

通过这样的本地方法管道数据怎么样?

<li ng-repeat="item in catchData((items|cut:max))">...</li>

我在这里打了一个完整的例子http://plnkr.co/edit/2L25wdB6S8GG659H4jPw?p=preview

于 2013-09-12T22:27:16.500 回答