Why is Angular 5 with Angular Material Dialog slow?
问题 Opening a dialog from Angular Material is slow if it contains more than a few buttons and a text field. I made a stackblitz to illustrate the problem. The dialog animates fast if it contains the following html: <h1 mat-dialog-title>Hi {{data.name}}</h1> <div mat-dialog-content> <p>What's your favorite animal?</p> <mat-form-field> <input matInput [(ngModel)]="data.animal"> </mat-form-field> </div> <div mat-dialog-actions> <button mat-button (click)="onNoClick()">No Thanks</button> <button mat