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

Function areAnimationsDisabled

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

Source from the content-addressed store, hash-verified

37 * Helper function to check if animations are disabled via injection token
38 */
39export function areAnimationsDisabled(lView: LView): boolean {
40 const injector = lView[INJECTOR]!;
41 return injector.get(ANIMATIONS_DISABLED, DEFAULT_ANIMATIONS_DISABLED);
42}
43
44/**
45 * 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