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

May 2024 ยท 1 minute read

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

ncG1vNJzZmirpJawrLvVnqmfpJ%2Bse6S7zGiorp2jqbawutJoa3BvaWeGdH6OmqWgrZyWv26BjJqbnatdo7Ruv9OaqWahnqiys8DEnWSipl2ovK6xjJyjmqujmsBuw8eaq2aho2LBqa3T