Angularjs

Get Length Of Filtered Data In Angular Js

Posted by Weston Ganger on August 20, 2014

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>

Posted in Angular and Tagged with ngularjs filter 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts