So I have an associative array (or object to be more precise)
$scope.items = { 'x': {...}, 'y': {...} };
I want to do an ng-repeat which works fine
<div ng-repeat="(id, data) in items | filter: customFunction" >
However the filter doesn't seem to be working, its defined as
$scope.customFunction = function (item) { return item.status === 'active'; }
However the filter is not working. I always get the whole set independently of what the filter is. Calling an alert inside the filter controller doesn't even show up. Seems like the function is not being called at all.
Before I was iterating through an array and it was working fine:
$scope.items = [ {...}, {...} ];
<div ng-repeat="item in items | filter: customFunction" >
I didn't include my logic for simplicity, I have some filtering logic rather than just return false.