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>

Article Topic:Software Development - Angular

Date:August 20, 2014

Recommended Posts



Send Me A Message

I would love to get in touch and talk about your next project. Feel free to send a message and I will get back to you shortly.

Get Connected