Angular 5 adds 'ng-star-inserted' in some classes - what is that?

It's a class name that is used internally by the BrowserAnimationsModule when animating entry and leaving transitions. You can see it in the source code here.


This class cause problem with the UI so need to replace with a <ng-container *ngIf=""></ng-container>