• Overview
@angular/platform-browser/animations/async

provideAnimationsAsync

function

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

  
    function provideAnimationsAsync(  type?: "animations" | "noop"): EnvironmentProviders;
  
  

provideAnimationsAsync

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

When you use this function instead of the eager provideAnimations(), animations won't be rendered until the renderer is loaded.

@paramtype"animations" | "noop"

pass 'noop' as argument to disable animations.

Jump to details