Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

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

Writer Matthew Harrington

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?

3

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.

10

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

4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy