I have a complex set of filters on an ng-repeat. I'm trying to get the count of the data set as it is filtered via each select list.
Here's my ng-repeat:
<div class="trials-item {{class}}" ng-repeat="data in dataObject | byCountry : selectRegion | byRegion : selectState | byCity : selectCity | filterBy:['Phase']: selectPhase | filterBy:['Compound']: selectCompound | filterBy:['TherapeuticArea', 'TherapeuticArea_2',]: selectTherapy : 'strict' | unique: 'Id' | orderBy:'Phase' : reverse track by $index " ng-class="{'open':$index == selectedRow}" id="anchor-{{$index}}" >
Trying to use {{ data.length }} doesn't work. I've tried to use some of the solutions detailed in this post: How to display length of filtered ng-repeat data , but they all deal with a much simpler set of filters, and if they would work with my filter set above, I must not be getting the syntax/order correct.