title: Is it possible to filter angular.js by containment in another array?
body: <p>So if I have an array:</p>
  
  <pre><code>$scope.letters = 
  [{"id":"a"},
  {"id":"b"},
  {"id":"c"}];
  </code></pre>
  
  <p>And another array </p>
  
  <pre><code>$scope.filterBy = ["b","c","d"];
  </code></pre>
  
  <p>And I want to have some ng-repeat to filter $scope.letters by only items that appear in $filterBy.</p>
  
  <p>I want to be able to do something to the effect of:</p>
  
  <pre><code>&lt;span ng-repeat="{{letter in letters|filter: letter.id in filterBy }} &gt; {{letter.id}} &lt;/span&gt;
  </code></pre>
  
  <p>And have it print b,c</p>
  
  <p>I know this is a really stupid example, but is there a way to filter an angular.js expression based on the contents of another array object?</p>