• Genel Bakış
@angular/platform-browser/animations

provideNoopAnimations

function
kullanımdan kaldırılmışv20.2'den beri

Returns the set of dependency-injection providers to disable animations in an application. See animations guide to learn more about animations in Angular.

Deprecation warning

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

API

@deprecated

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

@returnsProvider[]

Usage Notes

The function is useful when you want to bootstrap an application using the bootstrapApplication function, but you need to disable animations (for example, when running tests).

bootstrapApplication(RootComponent, {
  providers: [
    provideNoopAnimations()
  ]
});
Detaylara atla