Get Length Of Filtered Data In Angular Js

Posted By Weston Ganger

<p>You might need the length of filtered data in Angular such as how many posts include the word "angular"</p>
<p>This can be done using the following method:</p>

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

Article Topic:Software Development - Javascript

Date:August 20, 2014