What's the difference between BrowserAnimationsModule and NoopAnimationsModule?

我是研究僧i 提交于 2019-11-28 08:51:58
Günter Zöchbauer

As the name noop ("no operation") says, that module doesn't do anything. It is a utility module that mocks the real animation module but doesn't actually animate.

This can be handy on platforms where animation would be too slow, or for unit testing, if animation isn't involved in what you actually want to test.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!