Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm seeing that among the classes added to an element, sometimes there's this 'ng-star-inserted' added as well and I'd like to know more as to why is it there?

like image 212
vzR Avatar asked Dec 13 '17 12:12

vzR


2 Answers

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.

like image 95
Ben Elliott Avatar answered Oct 07 '22 08:10

Ben Elliott


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

like image 7
eliprodigy Avatar answered Oct 07 '22 07:10

eliprodigy