How to find the count of items in an ngFor after the pipes have been applied

前端 未结 9 1693
面向向阳花
面向向阳花 2020-12-06 04:18

I have an ngFor creating rows in a table that is both filtered and paged.



        
9条回答
  •  被撕碎了的回忆
    2020-12-06 04:55

    That is not exactly the purpose of the original question, but I was also looking for a way to display the count of items once that all pipes have been applied. By combining the index and last values provided by ngFor, I found this other solution :

    ...
    {{index + 1}} results

提交回复
热议问题