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