I'm struggling to find a way of filtering a set of results in an ng-repeat, based on an array of numbers. The numbers can represent results I want to see, or not see. I'm able to use a filter in the view and filter by one number, which works, but I want to put an array there and filter by the array. I don't care if the filter is in the view, the controller, or a separate filter.
The code below successfully filters topics with the forum id of 60
<div ng-repeat="topic in topics | filter:{forum_id:60}">
Forum ID: {{topic.forum_id}} Forum Name: {{topic.forum_title}}
</div>
I want to filter by an array
<div ng-repeat="topic in topics | filter:{forum_id:ARRAY_HERE}">
Forum ID: {{topic.forum_id}} Forum Name: {{topic.forum_title}}
</div>
Full plunk here: https://plnkr.co/edit/dCZ7DV?p=preview