填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

BrowserAnimationsModule

导出带有附加依赖项注入提供者BrowserModule 以便与动画一起使用。请参阅动画

Exports BrowserModule with additional dependency-injection providers for use with animations. See Animations.

      
      class BrowserAnimationsModule {
  static withConfig(config: BrowserAnimationsModuleConfig): ModuleWithProviders<BrowserAnimationsModule>
}
    

静态方法

Configures the module based on the specified object.

See also:

使用说明

When registering the BrowserAnimationsModule, you can use the withConfig function as follows:

      
      @NgModule({
  imports: [BrowserAnimationsModule.withConfig(config)]
})
class MyNgModule {}
    

提供商

提供商
      
      BROWSER_ANIMATIONS_PROVIDERS