Get the length of list shown by ng-Show

前端 未结 2 1816
渐次进展
渐次进展 2021-01-06 23:52

I\'m using Vraptor + Angular, and the question is simple. I hide some rows in my table with ng-show, but I want to take the count/length of the actual lines shown.

E

2条回答
  •  长情又很酷
    2021-01-07 00:35

    I'm a little confused on the question, but could you use:

    $data.length to get the total count of your data.

    The $index of the ng-repeat to get the current row/length.

    You could then use both values in an ng-show.

提交回复
热议问题