title: How to filter an array of objects based on an array of a specific object propert?
body: <p>Here is a small example of my html using <code>ng-repeat</code>: </p>
  
  <pre><code>&lt;div ng-repeat="item in vm.templateList | filter: vm.myFilter"&gt;
     &lt;h3&gt;{{item.Code}}&lt;/h3&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>In Js file the <code>vm.templateList</code> is as followed(as an example): </p>
  
  <pre><code>vm.templateList = [{Code: 'a', ID: 1}, 
                     {code: 'a', ID: 2},
                     {code: 'b', ID: 3},
                     {code: 'c', ID: 4}];
  </code></pre>
  
  <p>Imagine I want to filter this list for all items that have ID 1 and also items that have ID 2.</p>
  
  <p>What I originaly was doing was like this: </p>
  
  <pre><code>vm.filter = {ID: 1};
  </code></pre>
  
  <p>But this was I can only filter the list on 1 ID. Can anyone suggest a way?</p>