Hi Random, In addition to @zlatko's answer. I think you are looking for ng-container <https://angular.io/guide/structural-directives#ngcontainer>. That way you can use structural directives, without having extra wrapping elements in your DOM. this will work: <table> <ng-container *ngFor="let i of [1,2,3,0,2]"> <tr> <td>{{i}}</td> </tr> <tr *ngIf='i === 2'> <td>I have some extra text</td> </tr> </ng-container> </table> See it in action in this plnkr <https://plnkr.co/edit/4hdph2y2XDDSW2h3ygPf?p=preview>
Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
