I am working with an ng-repeat
directive in the following manner:
item in items | filter:myFilter | page:currentPage
My goal is to determine the current count of items after applying the myFilter
filter for pagination purposes. However, I found that following this answer applies both filters simultaneously, causing the pagination to display only one page of results.
Is there a way to conditionally apply filters to a variable created within an ng-repeat
loop?