title: Angular ngFor spanning two rows (expand/collapse)
body: <p>I have an angular application. I need display a list of data in a table. I have applied ngFor on the TR element of the table. However, when each row is expanded, another row with additional details about the item must be displayed.</p>
  
  <p>Collapsed view:
  <a href="https://i.stack.imgur.com/Qyezt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qyezt.png" alt="enter image description here"></a></p>
  
  <p>Expanded view:
  <a href="https://i.stack.imgur.com/BJvBN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BJvBN.png" alt="enter image description here"></a></p>
  
  <p>Code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table&gt;
    &lt;thead&gt;
    &lt;tr&gt;Header here&lt;/tr&gt;
    &lt;/thead&gt;
    
    &lt;tbody&gt;
      &lt;tr *ngFor="let item of results"&gt;
        + Collapsed Row
        &lt;!-- How do I display the expanded row and display additional details when + symbol is clicked? --&gt;
      &lt;/tr&gt;
      
    &lt;/tbody&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>