Is it possible to remove comments that makes the DOM "*ngIf" or "*ngFor" AngularJS2 when there isn't an element to render?
Maybe it's possible to set this up somewhere and not know. I would have the DOM as clean as possible and not see comments like this:
<!--template bindings={}-->
They are placeholders so Angular knows where to render elements. For example when the collection you refer to is empty and then add data Angular needs to know where to render the first template item.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With