title: ngRepeat iterate with two objects
body: <p>I'm trying to figure out on how to do some like this.</p>
  
  <p>If I have a array of data</p>
  
  <pre><code>[{complexName: value, complexName2: value}, {complexName: value, complexName2: value}];
  </code></pre>
  
  <p>And another array</p>
  
  <pre><code>[{display: "easy name2", bind:"complexName2"}, {display: "easy name", bind:"complexName"}]
  </code></pre>
  
  <p>I want to use a angular ng-repeat to loop between the two arrays and make a table, something like this:</p>
  
  <pre><code>&lt;table class="table table-stripped table-condensed table-bordered"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;td ng-repeat="obj2 in object2"&gt;
                  {{obj2.display}}
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr ng-repeat="obj1 in object1 WHERE obj1.key == obj2.bind"&gt;
              &lt;td&gt;{{obj1.value}}&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Any advices on how to do it ?</p>