title: Angularjs - filter object by search value, but don't omit if the search value is in the second object
body: <p>Having trouble even writing the subject with my lack of english.
  So here I go, I have for example two objects connected by the colorid:</p>
  
  <pre><code>   $scope.fruits = {{name:"apple",colorid:"1"},etc};
     $scope.colors = {{id:"1",value:"red"};
  </code></pre>
  
  <p>I've built a nice table with search and filter, using ng-repeat </p>
  
  <pre><code>   ng-repeat="fruit in fruits | orderBy:sortType:sortReverse | filter:search"
  </code></pre>
  
  <p>What I am trying to achieve is ... when i search/filter for "red", to still view "apple"..</p>
  
  <p>Edit: Obviously there is no connection in the ng-repeat with the second object "colors", the simplest solution would be to iterate each "fruit" and .push its color value (red) in the "fruits" object itself, so when searched/filtered for "red", the "apple" object is still visible in the search table.
  But I assumed there may be some "angular-ish" solution for connected tables and their relationship ids.</p>