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

vzR picture vzR · Dec 13, 2017 · Viewed 45.2k times · Source

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?

Answer

Ben Elliott picture Ben Elliott · Dec 13, 2017

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.