Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

provideNoopAnimations

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

      
      provideNoopAnimations(): Provider[]
    
Parameters

There are no parameters.

Returns

Provider[]

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()
  ]
});