MCPcopy Index your code
hub / github.com/angular/angular / Cmp

Class Cmp

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

Source from the content-addressed store, hash-verified

161
162 it('should flush and fire callbacks when the zone becomes stable', (async) => {
163 @Component({
164 selector: 'my-cmp',
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 standalone: false,
175 })
176 class Cmp {
177 exp: any;
178 event: any;
179 onStart(event: any) {
180 this.event = event;
181 }
182 }
183
184 TestBed.configureTestingModule({
185 providers: [{provide: AnimationEngine, useClass: InjectableAnimationEngine}],

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected