So if I have an array:
$scope.letters =
[{\"id\":\"a\"},
{\"id\":\"b\"},
{\"id\":\"c\"}];
And another array
$scope.filter
Quite old but I needed it and I had to change it a bit. Here's my filter "notInArray"
app.filter('notInArray', function($filter){
return function(list, arrayFilter, element){
if(arrayFilter){
return $filter("filter")(list, function(listItem){
for (var i = 0; i < arrayFilter.length; i++) {
if (arrayFilter[i][element] == listItem[element])
return false;
}
return true;
});
}
};
});
{{val.Name}}
{{$chip.Name}}
I supposed this can be improved but not needed in my case.
Hope that helps someone !