我看到在添加到元素中的类中,有时也会添加这个‘ ng-star-insert’,我想知道更多关于它为什么存在的信息?
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.
BrowserAnimationsModule
This class cause problem with the UI so need to replace with a <ng-container *ngIf=""></ng-container>
<ng-container *ngIf=""></ng-container>