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

Class MyAnimationApp

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

Source from the content-addressed store, hash-verified

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

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…