BrowserAnimationsModule
NgModule
deprecatedsince v20.2
Exports BrowserModule with additional dependency-injection providers
for use with animations. See Animations.
Deprecation warning
withConfig
ModuleWithProviders<BrowserAnimationsModule>Configures the module based on the specified object.
@paramconfig
BrowserAnimationsModuleConfigObject used to configure the behavior of the BrowserAnimationsModule.
Usage notes
When registering the BrowserAnimationsModule, you can use the withConfig
function as follows:
@NgModule({ imports: [BrowserAnimationsModule.withConfig(config)]})class MyNgModule {}
Jump to details