How to disable animation while opening dialog in angular material 2 with angular 4

后端 未结 3 1158
一个人的身影
一个人的身影 2020-12-19 02:33

I\'m trying to create the dialog but problem is I want to disable the animation in the dialog so how to disable it.

3条回答
  •  感情败类
    2020-12-19 03:02

    you can disable by importing

    NoopAnimationsModule

    import {NoopAnimationsModule} from '@angular/platform-browser/animations';
    
    @NgModule({
      ...
      imports: [NoopAnimationsModule],
      ...
    })
    

    more info https://material.angular.io/guide/getting-started

提交回复
热议问题