Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Say hello to Angular's future home!Check out Angular.devHome
/

BrowserAnimationsModule

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

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

Static methods

Configures the module based on the specified object.

See also:

Usage Notes

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

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

Providers

Provider
      
      BROWSER_ANIMATIONS_PROVIDERS