How can I show a count of rows from an ng-repeat?

Posted by Anne on Stack Overflow See other posts from Stack Overflow or by Anne
Published on 2013-11-13T14:17:30Z Indexed on 2013/11/13 15:54 UTC
Read the original article Hit count: 158

Filed under:

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>

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.

© Stack Overflow or respective owner

Related posts about angularjs