Angular (original) (raw)
@angular/platform-browser/animations
BrowserAnimationsModule
NgModule
stable
Exports BrowserModule
with additional dependency-injection providers for use with animations. See Animations.
API
class [BrowserAnimationsModule](/api/platform-browser/animations/BrowserAnimationsModule) {}
withConfig
[ModuleWithProviders](/api/core/ModuleWithProviders)<[BrowserAnimationsModule](/api/platform-browser/animations/BrowserAnimationsModule)>
Configures the module based on the specified object.
@paramconfig[BrowserAnimationsModuleConfig](/api/platform-browser/animations/BrowserAnimationsModuleConfig)
Object used to configure the behavior of the [BrowserAnimationsModule](/api/platform-browser/animations/BrowserAnimationsModule)
.
@returns[ModuleWithProviders](/api/core/ModuleWithProviders)<[BrowserAnimationsModule](/api/platform-browser/animations/BrowserAnimationsModule)>
Usage notes
When registering the [BrowserAnimationsModule](/api/platform-browser/animations/BrowserAnimationsModule)
, you can use the withConfig
function as follows:
@NgModule({ imports: [BrowserAnimationsModule.withConfig(config)]})class MyNgModule {}