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

Class AnimationComp

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

Source from the content-addressed store, hash-verified

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],

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