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

Class AnimationComp

packages/core/test/acceptance/integration_spec.ts:3527–3547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3525 }
3526
3527 @Component({
3528 selector: 'animation-comp',
3529 animations: [
3530 trigger('host', [
3531 state('void', style({height: '0px'})),
3532 transition('* => *', [animate('1s')]),
3533 ]),
3534 ],
3535 template: ` <ng-content></ng-content> `,
3536 standalone: false,
3537
3538 changeDetection: ChangeDetectionStrategy.Eager,
3539 })
3540 class AnimationComp {
3541 @HostBinding('@host') public hostState = '';
3542
3543 @HostListener('@host.start', ['$event'])
3544 onLeaveStart(event: AnimationEvent) {
3545 // we just want to register the listener
3546 }
3547 }
3548
3549 TestBed.configureTestingModule({
3550 declarations: [Cmp, AnimationComp],

Callers

nothing calls this directly

Calls 8

ComponentInterface · 0.90
triggerFunction · 0.90
stateFunction · 0.90
styleFunction · 0.90
transitionFunction · 0.90
animateFunction · 0.90
HostBindingInterface · 0.90
HostListenerInterface · 0.90

Tested by

no test coverage detected