I want to use the filter
in angular and want to filter for multiple values, if it has either one of the values then it should be displayed.
I have for
I would just create a custom filter. They are not that hard.
angular.module('myFilters', []).
filter('bygenre', function() {
return function(movies,genres) {
var out = [];
// Filter logic here, adding matches to the out var.
return out;
}
});
Movies
Action
Family
{{genrefilters.action}}::{{genrefilters.family}}
- {{movie.title}}: {{movie.genre}}
Edit here is the link: Creating Angular Filters
UPDATE: Here is a fiddle that has an exact demo of my suggestion.