Can't use two template binding on one element in Angular 2 (like *ngIf and *ngFor).
you need to create ng element over your code (td , li)
Thanks
you need to create ng element over your code (td , li)
<ng-container *ngIf="condition">
<li *ngFor="let item of items">
{{item}}
</li>
</ng-container>
Thanks
No comments:
Post a Comment