DEV Community

Angular: Structural directives like *ngIf and *ngFor without the extra elements

Austin Spivey on June 08, 2018

One drawback I've found with Angular is that you often found yourself adding unnecessary DOM elements to your templates, just so you can wrap a blo...
Collapse
 
tonejac profile image
Tony Jacobson • Edited

OMG!! <ng-container> That is a game-changer for me! Thank you for sharing it. For whatever reason I had no idea it existed!!

Thanks for this article!

Collapse
 
koczkadavid profile image
David Koczka

This is a pretty neat way, to keep the DOM clean. Thank you!