My data array holds objects in JSON format.
var users = {
'New':{
{Name:'One'},
{Name:'Two'}
},
'Old':{
{Name:'Three'},
{Name:'Four'}
}
This piece of code is used to display the data:
<div ng-repeat="(key, value) in users">
<p>{{key}}</p>
<div ng-repeat="user in value | filter: query">
</div>
</div>
I need to find out how many items are being filtered. Can you help me with this? Thank you in advance!