| 3208 | } |
| 3209 | |
| 3210 | @Component({ |
| 3211 | selector: 'animation-comp', |
| 3212 | animations: [ |
| 3213 | trigger('host', [ |
| 3214 | state('void', style({height: '0px'})), |
| 3215 | transition('* => *', [animate('1s')]), |
| 3216 | ]), |
| 3217 | ], |
| 3218 | template: ` <ng-content></ng-content> `, |
| 3219 | changeDetection: ChangeDetectionStrategy.Eager, |
| 3220 | }) |
| 3221 | class AnimationComp { |
| 3222 | @HostBinding('@host') public hostState = ''; |
| 3223 | |
| 3224 | @HostListener('@host.start', ['$event']) |
| 3225 | onLeaveStart(event: AnimationEvent) { |
| 3226 | // we just want to register the listener |
| 3227 | } |
| 3228 | } |
| 3229 | |
| 3230 | TestBed.configureTestingModule({ |
| 3231 | imports: [NoopAnimationsModule], |
nothing calls this directly
no test coverage detected