我怎么可以显示从纳克重复行的总数? [英] How can I show a count of rows from an ng-repeat?
本文介绍了我怎么可以显示从纳克重复行的总数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有我的网页,填充了这样的数据对表:
I have a table on my web page that is populated with data like this:
<tr data-ng-repeat="row in grid.data | filter:isQuestionInRange">
<td>{{ row.problemId }}</td>
</tr>
有没有办法,我可以把表尾中显示的行数的方法。请注意,我希望能够表现出后已被筛选不只是行的行从grid.data阵列计数。
Is there a way that I can put a count of the rows displayed in the table footer. Note that I want to be able to show the rows after that have been filtered not just the row count from the grid.data array.
推荐答案
您可以检查过滤数组的长度,例如:
You could check the length of the filtered array such as:
{{ (grid.data | filter:isQuestionInRange).length }}
这篇关于我怎么可以显示从纳克重复行的总数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文