{ "id": "api/platform-browser/animations/BrowserAnimationsModule", "title": "BrowserAnimationsModule", "contents": "\n\n
\n
\n
\n \n API > @angular/platform-browser > @angular/platform-browser/animations\n
\n \n
\n \n
\n

BrowserAnimationsModulelink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

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

\n\n \n
\n \n \n \n
\n\nclass BrowserAnimationsModule {\n static withConfig(config: BrowserAnimationsModuleConfig): ModuleWithProviders<BrowserAnimationsModule>\n}\n\n\n \n \n\n
\n\n\n \n\n \n \n \n \n\n \n\n
\n

Static methodslink

\n \n \n\n \n \n \n \n \n \n \n \n \n \n\n \n\n \n \n \n \n
\n
\n

\n withConfig()\n \n link

\n \n
\n
\n

Configures the module based on the specified object.

\n\n

See also:

\n \n \n
\n
\n \n\n static withConfig(config: BrowserAnimationsModuleConfig): ModuleWithProviders<BrowserAnimationsModule>\n\n \n\n
Parameters
\n \n \n \n \n \n \n \n \n \n
\n \n config\n BrowserAnimationsModuleConfig\n

Object used to configure the behavior of the BrowserAnimationsModule.

\n\n
\n\n \n
Returns
\n

ModuleWithProviders<BrowserAnimationsModule>

\n\n \n\n\n \n\n \n
\n
\n

Usage Noteslink

\n

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

\n\n@NgModule({\n imports: [BrowserAnimationsModule.withConfig(config)]\n})\nclass MyNgModule {}\n\n\n
\n\n \n
\n\n \n\n \n\n\n \n\n\n \n \n
\n

Providerslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n
Provider
\n \n BROWSER_ANIMATIONS_PROVIDERS\n \n
\n
\n\n \n\n \n \n\n\n \n\n\n
\n
\n\n\n" }