Get Length Of Filtered Data In Angular Js

Posted by Weston Ganger

You might need the length of filtered data in Angular such as how many posts include the word "angular"

This can be done using the following method:


<div ng-repeat="post in filtered = (data | filter: 'angular')">
  <div> {{filtered.length}} </div>
</div>

Article Topic:Software Development - Angular

Date:August 20, 2014

Recommended Posts