ngmodule
Exports BrowserModule
with additional dependency-injection providers for use with animations. See Animations.
class BrowserAnimationsModule { static withConfig(config: BrowserAnimationsModuleConfig): ModuleWithProviders<BrowserAnimationsModule> }
withConfig() | |||
---|---|---|---|
Configures the module based on the specified object. See also: | |||
|
config | BrowserAnimationsModuleConfig | Object used to configure the behavior of the |
When registering the BrowserAnimationsModule
, you can use the withConfig
function as follows:
@NgModule({ imports: [BrowserAnimationsModule.withConfig(config)] }) class MyNgModule {}
Provider |
---|
BROWSER_ANIMATIONS_PROVIDERS |
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v12.angular.io/api/platform-browser/animations/BrowserAnimationsModule