In some cases, <ng-container> may be useful. Like (not for this specific question):
<ng-container *ngFor="let item of items; let i = index">
...
</ng-container>
In the DOM, its content is rendered as usual, but the tag itself is rendered as an HTML comment.
From the documentation:
Group sibling elements with
<ng-container>[…]
<ng-container>to the rescueThe Angular
<ng-container>is a grouping element that doesn’t interfere with styles or layout because Angular doesn’t put it in the DOM.