BrowserAnimationsModule

From Get docs
< @angular/platform-browser‎ | animationsAngular/docs/latest/api/platform-browser/animations/browseranimationsmodule


BrowserAnimationsModule

ngmodule

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:

  • BrowserAnimationsModuleConfig

static withConfig(config: BrowserAnimationsModuleConfig): ModuleWithProviders<BrowserAnimationsModule>

Parameters
config BrowserAnimationsModuleConfig Object used to configure the behavior of the BrowserAnimationsModule.
Returns

ModuleWithProviders<BrowserAnimationsModule>


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


© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/platform-browser/animations/BrowserAnimationsModule