title: Why ng-template is not working in Angular?
body: <p>We can't use <code>*ngFor</code> and <code>*ngIf</code> on the same element. A technique is to nest them. Almost everywhere it's OK, except in tables when we want to both loop over <code>tr</code> and print them conditionally.</p>
  
  <p>As <a href="https://stackoverflow.com/questions/37026219/angular2-ngfor-and-ngif-on-same-element-producing-error">suggested here</a> we should use <code>&lt;template&gt;</code>, or <a href="https://angular.io/guide/structural-directives#the-ng-template" rel="noreferrer"><code>&lt;ng-template&gt;</code></a> elements, so that it won't be printed to the DOM.</p>
  
  <p>But I can't make it work. It simply doesn't print out anything. <a href="https://next.plnkr.co/edit/tMpJFIOhV6LQt810?open=lib%2Fapp.ts&amp;deferRun=1&amp;preview" rel="noreferrer">Here's a plunker to show it in action</a>.</p>
  
  <p>What should I do?</p>