The module you need is $filter. It's in the native angular so you only need to include it in your controller inserts:
myApp.controller('myController',['$scope','$filter', function($scope,$filter){
}]);
It's use is well documented. It's kinda like the model filter (item in items | filter:{Id:20})
var myFilteredItems = $filter('filter')(myItems,{"groupGuid":"d20ab30b-977e-4641-affb-878b45d753da","groupName":"Kicked","Start":8000,"End":8999,"assignedToUserName":"Admin","errors":{"assignedToUserName":null}});
The filter can be as simple as you like:{groupGuid:"d20ab30b-977e-4641-affb-878b45d753da"}, or as complex as you have it. Any field in the myItems object that is not included in the filter object will not be filtered on. cool eh ^_^
Advanced usage:
The reason you use $filter('filter') is because you are using the default angular filter which take a filter object as a parameter. You can create your own filters too:
myApp.filter('getMyItem', ["$filter", function ($filter) {
return function (data, groupId,start, end ) {
var filterObj = {
groupId: groupId,
start:start,
end:end };
var found = $filter('filter')(data, filterObj, true);
if (!found || !found.length)
return null;
return found;
}
}]);
Then use that instead of 'filter':
var myFilteredItems = $filter('getMyItem')(myItems, groupId, start, end);
These filters can also be used in model filtering
Let me know if you get stuck ^_^
Andy