import { Component } from '@angular/core'; import { Heroes } from './hero.service'; import { HeroListBasicComponent } from './hero-list-basic.component'; import { HeroListInlineStylesComponent } from './hero-list-inline-styles.component'; import { HeroListEnterLeaveComponent } from './hero-list-enter-leave.component'; import { HeroListEnterLeaveStatesComponent } from './hero-list-enter-leave-states.component'; import { HeroListCombinedTransitionsComponent } from './hero-list-combined-transitions.component'; import { HeroListTwowayComponent } from './hero-list-twoway.component'; import { HeroListAutoComponent } from './hero-list-auto.component'; import { HeroListGroupsComponent } from './hero-list-groups.component'; import { HeroListMultistepComponent } from './hero-list-multistep.component'; import { HeroListTimingsComponent } from './hero-list-timings.component'; @Component({ selector: 'hero-team-builder', template: `

Basic State

Switch between active/inactive on click.

Styles inline in transitions

Animated effect on click, no persistend end styles.

Combined transition syntax

Switch between active/inactive on click. Define just one transition used in both directions.

Two-way transition syntax

Switch between active/inactive on click. Define just one transition used in both directions using the <=> syntax.

Enter & Leave

Enter and leave animations using the void state.

Enter & Leave & States

Enter and leave animations combined with active/inactive state animations. Different enter and leave transitions depending on state.

Auto Style Calc

Leave animation from the current computed height using the auto-style value *.

Different Timings

Enter and leave animations with different easings, ease-in for enter, ease-out for leave.

Multiple Keyframes

Enter and leave animations with three keyframes in each, to give the transition some bounce.

Parallel Groups

Enter and leave animations with multiple properties animated in parallel with different timings.

`, styles: [` .buttons { text-align: center; } button { padding: 1.5em 3em; } .columns { display: flex; flex-direction: row; } .column { flex: 1; padding: 10px; } .column p { min-height: 6em; } `], directives: [ HeroListBasicComponent, HeroListInlineStylesComponent, HeroListCombinedTransitionsComponent, HeroListTwowayComponent, HeroListEnterLeaveComponent, HeroListEnterLeaveStatesComponent, HeroListAutoComponent, HeroListTimingsComponent, HeroListMultistepComponent, HeroListGroupsComponent ], providers: [Heroes] }) export class HeroTeamBuilderComponent { constructor(private heroes: Heroes) { } }