MCPcopy Create free account
hub / github.com/angular/angular / areAnimationsDisabled

Function areAnimationsDisabled

packages/core/src/animation/utils.ts:38–41  ·  view source on GitHub ↗
(lView: LView)

Source from the content-addressed store, hash-verified

36 * Helper function to check if animations are disabled via injection token
37 */
38export function areAnimationsDisabled(lView: LView): boolean {
39 const injector = lView[INJECTOR]!;
40 return injector.get(ANIMATIONS_DISABLED, DEFAULT_ANIMATIONS_DISABLED);
41}
42
43/**
44 * Asserts a value passed in is actually an animation type and not something else

Callers 4

ɵɵanimateEnterFunction · 0.90
ɵɵanimateEnterListenerFunction · 0.90
ɵɵanimateLeaveFunction · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected