Angular how to remove ng-star-inserted

Instead of using:  Using ngIf can produce incorrect results.

Read more »