title: Is there a performance difference between <ng-container> and <ng-template>?
body: <p>I have a doubt regarding <code>&lt;ng-container&gt;</code> and <code>&lt;ng-template&gt;</code>. Which is better to be used in our code. I've read an answer regarding the difference between this two tag over <a href="https://stackoverflow.com/questions/40529537/ng2-difference-between-ng-container-and-ng-template-tags">here</a> on SO. It says Angular compiler de-sugars(make it a bit complex) by converting </p>
  
  <pre><code> `&lt;div *ngFor="let person of persons"&gt;&lt;/div&gt;`
  </code></pre>
  
  <p>to this</p>
  
  <pre><code>&lt;ng-template ngFor let-person="$implicit" [ngForOf]="persons"&gt;
     &lt;div&gt;...&lt;/div&gt;
   &lt;/ng-template&gt;
  </code></pre>
  
  <p>So my concern is <code>&lt;ng-template&gt;</code> will affect the rendering performance in the browser as compared to <code>&lt;ng-container&gt;</code> and Which of from these 2 should be given preference? </p>