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

Function dispatchAnimationEnd

packages/core/test/acceptance/animation_spec.ts:913–917  ·  view source on GitHub ↗
(animation: Animation)

Source from the content-addressed store, hash-verified

911
912 const [shortAnimation, longAnimation] = getAnimations();
913 const dispatchAnimationEnd = (animation: Animation) => {
914 const event = new AnimationEvent('animationend', {animationName: 'duplicate-name'});
915 Object.defineProperty(event, 'animation', {value: animation});
916 paragraph.nativeElement.dispatchEvent(event);
917 };
918
919 dispatchAnimationEnd(shortAnimation);
920 tick();

Callers 1

animation_spec.tsFile · 0.85

Calls 1

dispatchEventMethod · 0.45

Tested by

no test coverage detected