Skip to content

Instantly share code, notes, and snippets.

@Dornhoth
Last active June 14, 2020 19:09
Show Gist options
  • Save Dornhoth/b39010b47783326faa91c353846e7ad7 to your computer and use it in GitHub Desktop.
Save Dornhoth/b39010b47783326faa91c353846e7ad7 to your computer and use it in GitHub Desktop.
// not going to work
<div class="lesson" *ngIf="array" *ngFor="let element of array">
{{ element }}
</div>
// working
<ng-container *ngIf="array">
<div *ngFor="let element of array">
{{ element }}
</div>
</ng-container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment