So, this works, but I'm betting it's applying the filter again (which seems
overkill) and it doesn't actually give me access to the filtered items. If
anyone has a cleaner or better way. Please let me know.
Row Count: {{ (qualifiers | filter:search:strict).length }}
On Tuesday, July 22, 2014 9:49:15 AM UTC-6, Adam Gordon wrote:
>
> I have filter boxes tied to my grid data and everything is working great.
> I'd like to add a row count that updates with the number of items
> displayed but don't know the name of the scoped variable that stores either
> the filtered items (or the count) and the angular documentation doesn't
> indicate how to access this. Does anyone know?
>
> Here's the code snippet:
>
> Row Count: {{ what_goes_here? }}
>
> <!-- snip -->
>
> <tr data-ng-repeat="qualifier in qualifiers | orderBy:predicate:reverse |
> filter:search:strict">
>
> I do know that "search" is in my $scope.
>
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.