title: AngularJS ng-repeat double rows
body: <p>I am trying to add a second row (<code>&lt;tr&gt;</code>) in the code below for each event in events in the ng-repeat. However, it only adds a single row at the end, I need each new row (class="info") to be BETWEEN each of the other rows with the rel attribute.</p>
  
  <p>The cell in the info row will be filled via ajax and toggled when the Details link is clicked, it will then be toggled again when the Close link is clicked (Details changes to Close). It will work similar to this fiddle: <a href="http://jsfiddle.net/Mrbaseball34/btwa7/" rel="nofollow">http://jsfiddle.net/Mrbaseball34/btwa7/</a></p>
  
  <p>How would I do that in AngularJS?</p>
  
  <pre><code>&lt;tbody id="events_tbody"&gt;
      &lt;tr ng-repeat="event in events" rel="{{event.EVE_EVENT_CODE}}"&gt;
          &lt;td&gt;{{event.COURSE_TYPE}}&lt;/td&gt;
          &lt;td&gt;{{event.EVE_FORMAL_DATE}}&lt;/td&gt;
          &lt;td&gt;{{event.EVE_DESCRIPTION}}&lt;/td&gt;
          &lt;td&gt;{{event.PRICE | dollars}}&lt;/td&gt;
          &lt;td class="nb"&gt;
              &lt;a href="#"&gt;Details&lt;/a&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;!-- Now add Details row: --&gt;
      &lt;tr class="info" style="display:none;"&gt;
          &lt;td colspan="5" id="info_{{event.EVE_EVENT_CODE}}"&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>