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.
API
Description
Usage Notes
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.
@returns
EnvironmentProviders
Jump to details