I'm having trouble figuring out how to filter a list of results in an ng-repeat based on an array of numbers. These numbers can determine which results I want to display or hide. Currently, I am able to use a filter in the view to filter by one number, but I would like to be able to filter by an array instead. Whether the filter is in the view, controller, or a separate filter does not matter to me.
The following code 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>
Now, I want to be able 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>
For the complete example, please visit: https://plnkr.co/edit/dCZ7DV?p=preview