title: How to use different data inside two ng-repeat directives?
body: <p>I'm trying to make an editable table directive. I have two configs:</p>
  
  <p>1) Table config:</p>
  
  <pre><code>table = [
              {name: 'id',title: '#'},
              {name: 'name',title: 'Name'}, 
              {name: 'phone',title: 'Phone'}, 
              {   
                  name: 'action',
                  title: 'Edit',
                  button_name: 'Edit me',
                  type: 'button',
              }
  ];
  </code></pre>
  
  <p>2) Data config:</p>
  
  <pre><code>  data = [
    {id: 1, name: 'Rikki', phone: 02},
    {id: 2, name: 'Pikki', phone: 03},
    {id: 3, name: 'Mikki', phone: 03}
  ];
  </code></pre>
  
  <p>I'm wondering, how to put buttons in the cell when it's 'action' row:</p>
  
  <p>3) HTML:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;thead&gt;
       &lt;tr&gt;
          &lt;h2&gt;head&lt;/h2&gt;
          &lt;td ng-repeat="(key, value) in table"&gt;{{value.title}}&lt;/td&gt;
       &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
       &lt;tr ng-repeat="(tkey, dataValue) in data"&gt;
         &lt;td ng-repeat="(dkey, value) in dataValue"&gt;
           {{value}}  // and if it's 'Action' column, I want to push data from Table config to show buttons</code></pre>
  </div>
  </div>
  </p>
  
  <p>Is it possible? Who can help me?</p>