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

Class MyAnimationApp

packages/platform-server/test/integration_spec.ts:373–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371
372function createMyAnimationApp(standalone: boolean) {
373 @Component({
374 selector: 'app',
375 standalone,
376 template: ` <div [@myAnimation]="state">
377 <svg *ngIf="true"></svg>
378 {{ text }}
379 </div>`,
380 animations: [
381 trigger('myAnimation', [
382 state('void', style({'opacity': '0'})),
383 state(
384 'active',
385 style({
386 'opacity': '1', // simple supported property
387 'font-weight': 'bold', // property with dashed name
388 'transform': 'translate3d(0, 0, 0)', // not natively supported by Domino
389 }),
390 ),
391 transition('void => *', [animate('0ms')]),
392 ]),
393 ],
394 })
395 class MyAnimationApp {
396 state = 'active';
397
398 constructor(private builder: AnimationBuilder) {}
399
400 text = 'Works!';
401 }
402
403 return MyAnimationApp;
404}

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected