Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

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