title: AngularJS: filter repeat match against list
body: <p>I have a list of objects that gets looped over by ngRepeat:</p>
  
  <pre><code>hashes = [
    {
        "type": "foo"
      , …
    }
    , {
        "type": "foo"
      , …
    }
    , {
        "type": "bar"
      , …
    }
  ]
  </code></pre>
  
  <p>I want to filter them based on <code>type</code> if it's value matches a item in a list of needles:</p>
  
  <pre><code>types = ['foo','quz'];
  </code></pre>
  
  <p>so something like</p>
  
  <pre><code>&lt;div ng-repeat="hash in hashes | filter:types"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Is this built into Angular or would I have to write a custom filter?</p>