Skip to content

Instantly share code, notes, and snippets.

@natmegs
Created January 8, 2018 23:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save natmegs/eeb671314212e1b141aafdb120d5cb2c to your computer and use it in GitHub Desktop.
Using <ng-container>
<ng-container>
You can see me! (Without any help from structural directives)
</ng-container>
<table>
<tbody>
<ng-container *ngFor="let item of items">
<tr *ngIf="item > 1">
<td>{{item}}</td>
</tr>
</ng-container>
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment