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

Class Cmp

packages/platform-browser/animations/test/animation_renderer_spec.ts:164–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162
163 it('should flush and fire callbacks when the zone becomes stable', async () => {
164 @Component({
165 template: '<div [@myAnimation]="exp" (@myAnimation.start)="onStart($event)"></div>',
166 animations: [
167 trigger('myAnimation', [
168 transition('* => state', [
169 style({'opacity': '0'}),
170 animate(500, style({'opacity': '1'})),
171 ]),
172 ]),
173 ],
174 })
175 class Cmp {
176 exp: any;
177 event: any;
178 onStart(event: any) {
179 this.event = event;
180 }
181 }
182
183 TestBed.configureTestingModule({
184 providers: [{provide: AnimationEngine, useClass: InjectableAnimationEngine}],

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected