title: AngularJS filter on multiple values of one field
body: <p>I need to be able to filter on two different values of one field of an object. Take the following example.</p>
  
  <pre><code>$scope.products = [
      {name:"Apple",type:"fruit"},
      {name:"Grape",type:"fruit"},
      {name:"Orage",type:"fruit"},
      {name:"Carrot",type:"vegetable"},
      {name:"Milk",type:"dairy"}
  ]
  </code></pre>
  
  <p>With the filter <code>ng-repeat="item in products | filter:{type:'fruit'}"</code>. I can get all of the fruits. But what if I want to get all of the fruits and vegetables. I tried</p>
  
  <pre><code>ng-repeat="item in products | filter:{type:['fruit','vegetable']}"
  </code></pre>
  
  <p>But that didn't work. I figure there should be a simple solution to this, but I couldn't find it.</p>
  
  <p><strong><a href="http://jsfiddle.net/QHtD8/" rel="noreferrer">JSFiddle Example</a></strong></p>