MCPcopy
hub / github.com/angular/angular / AnimationCmp

Class AnimationCmp

packages/platform-browser/test/browser/bootstrap_spec.ts:453–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451
452 describe('with animations', () => {
453 @Component({
454 selector: 'hello-app',
455 template:
456 '<div @myAnimation (@myAnimation.start)="onStart($event)">Hello from AnimationCmp!</div>',
457 animations: [
458 trigger('myAnimation', [transition('void => *', [style({opacity: 1}), animate(5)])]),
459 ],
460 })
461 class AnimationCmp {
462 renderer = _inject(ANIMATION_MODULE_TYPE, {optional: true}) ?? 'not found';
463 startEvent?: {};
464
465 onStart(event: {}) {
466 this.startEvent = event;
467 }
468 }
469
470 it('should enable animations when using provideAnimations()', async () => {
471 const appRef = await bootstrapApplication(AnimationCmp, {

Callers

nothing calls this directly

Calls 5

ComponentInterface · 0.90
triggerFunction · 0.90
transitionFunction · 0.90
styleFunction · 0.90
animateFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…