• 개요
@angular/platform-browser/animations

BrowserAnimationsModule

NgModule
사용 중단 권고v20.2부터

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

사용 중단을 권고합니다.

Use animate.enter or animate.leave instead. Intent to remove in v23

API

withConfig

ModuleWithProviders<BrowserAnimationsModule>

Configures the module based on the specified object.

@paramconfigBrowserAnimationsModuleConfig

Object used to configure the behavior of the BrowserAnimationsModule.

사용 시 참고사항

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

@NgModule({
  imports: [BrowserAnimationsModule.withConfig(config)]
})
class MyNgModule {}
상세 내용으로 이동