What's the difference between BrowserAnimationsModule and NoopAnimationsModule?

前端 未结 2 1403
予麋鹿
予麋鹿 2020-12-05 12:58

With the new Angular-Material release, you need to add a module for Angular-Animations. You can choose between two BrowserAnimationsModule and NoopAnimationsModule. The offi

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-05 13:22

    BROWSER_ANIMATIONS_PROVIDERS is used for real application

    Separate providers from the actual module so that we can do a local modification in Google3 to include them in the BrowserModule.

    BROWSER_NOOP_ANIMATIONS_PROVIDERS is used for testing

    Separate providers from the actual module so that we can do a local modification in Google3 to include them in the BrowserTestingModule.

提交回复
热议问题