I have a ng-repeat statement for projects. I then have a dropdown that selects the region the project was in. I have it working if its a single region but i need to check for projects in multiple regions. Example they selected Africa and North America.
<div class="column project-thumbnail" data-ng-repeat="project in projects | orderBy:livePredicate:'title' | filter:liveRegion:'region'>
I need it to be like this:
filter:'Africa' OR 'North America' OR 'etc':'region'>
I have tried to pass it an object, and I have also tried what I saw in another post about a function that passes like this:
$scope.showMovie = function(movie){
return movie.genre === $scope.Filter.Comedy ||
movie.genre === $scope.Filter.Drama ||
movie.genre === $scope.Filter.Action;
Any suggestions or help is super appreciated. The object has a project.region that it is comparing to and can have any number of values. So any selected region I would want to show.