angular
.module('quApp')
.filter('ingrListFilter', function() {
return function (items, filter){
return _.reject(items, function(item){
return _.contains(filter, item.id);
});
};
});
<span ng-repeat="ingredient in ingredients | ingrListFilter:dishIngredientsIndexes">
<span class="badge">{{ingredient.name}}</span>
</span>