Answer the question
In order to leave comments, you need to log in
How to get the number of elements passed filtering in AngularJS?
There is a chain of filters. I need to know the number of elements passed through the very first searchText filter.
<tr ng-repeat="item in items |filter: searchText|startFrom: currentPage * itemsPerPage
| limitTo: itemsPerPage| orderBy:property:reverse">
Answer the question
In order to leave comments, you need to log in
1) Assign a variable (for example, myVar) for the result
2) myVar.length
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question