I'd like to have an if statement that determines whether or not an element gets added to the DOM. But since ngIf is an attribute it has to be attached to an element and that element is always added to the DOM even when it evaluates to false.
Is there another way to do this in Angular?