diff --git a/aio/content/examples/animations/src/app/app.module.ts b/aio/content/examples/animations/src/app/app.module.ts index 0773357c58..b1ac87cca2 100644 --- a/aio/content/examples/animations/src/app/app.module.ts +++ b/aio/content/examples/animations/src/app/app.module.ts @@ -1,5 +1,6 @@ -// #docregion animations-module +// #docplaster import { NgModule } from '@angular/core'; +// #docregion animations-module import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; // #enddocregion animations-module @@ -15,11 +16,12 @@ 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'; +// #docregion animations-module -// #docregion animation-module @NgModule({ imports: [ BrowserModule, BrowserAnimationsModule ], - // #enddocregion animation-module + // ... more stuff ... +// #enddocregion animations-module declarations: [ HeroTeamBuilderComponent, HeroListBasicComponent, @@ -34,5 +36,8 @@ import { HeroListTimingsComponent } from './hero-list-timings.component'; HeroListGroupsComponent ], bootstrap: [ HeroTeamBuilderComponent ] +// #docregion animations-module }) export class AppModule { } +// #enddocregion animations-module + diff --git a/aio/content/examples/animations/src/app/hero-list-auto.component.ts b/aio/content/examples/animations/src/app/hero-list-auto.component.ts index 84b25c05de..6c9b70ff4d 100644 --- a/aio/content/examples/animations/src/app/hero-list-auto.component.ts +++ b/aio/content/examples/animations/src/app/hero-list-auto.component.ts @@ -10,7 +10,7 @@ import { transition } from '@angular/animations'; -import { Heroes } from './hero.service'; +import { Hero } from './hero.service'; @Component({ selector: 'hero-list-auto', @@ -43,5 +43,5 @@ import { Heroes } from './hero.service'; // #enddocregion animationdef }) export class HeroListAutoComponent { - @Input() heroes: Heroes; + @Input() heroes: Hero[]; } diff --git a/aio/content/examples/animations/src/app/hero-list-basic.component.ts b/aio/content/examples/animations/src/app/hero-list-basic.component.ts index 76d5ba686c..f3a5856d9d 100644 --- a/aio/content/examples/animations/src/app/hero-list-basic.component.ts +++ b/aio/content/examples/animations/src/app/hero-list-basic.component.ts @@ -14,7 +14,7 @@ import { } from '@angular/animations'; // #enddocregion imports -import { Heroes } from './hero.service'; +import { Hero } from './hero.service'; @Component({ selector: 'hero-list-basic', @@ -66,5 +66,5 @@ import { Heroes } from './hero.service'; // #enddocregion animationdef }) export class HeroListBasicComponent { - @Input() heroes: Heroes; + @Input() heroes: Hero[]; } diff --git a/aio/content/examples/animations/src/app/hero-list-combined-transitions.component.ts b/aio/content/examples/animations/src/app/hero-list-combined-transitions.component.ts index fc654cbcb5..cfac09b825 100644 --- a/aio/content/examples/animations/src/app/hero-list-combined-transitions.component.ts +++ b/aio/content/examples/animations/src/app/hero-list-combined-transitions.component.ts @@ -13,7 +13,7 @@ import { } from '@angular/animations'; // #enddocregion imports -import { Heroes } from './hero.service'; +import { Hero } from './hero.service'; @Component({ selector: 'hero-list-combined-transitions', @@ -55,5 +55,5 @@ import { Heroes } from './hero.service'; // #enddocregion animationdef }) export class HeroListCombinedTransitionsComponent { - @Input() heroes: Heroes; + @Input() heroes: Hero[]; } diff --git a/aio/content/examples/animations/src/app/hero-list-enter-leave-states.component.ts b/aio/content/examples/animations/src/app/hero-list-enter-leave-states.component.ts index c01e182e8b..1b5b1000f4 100644 --- a/aio/content/examples/animations/src/app/hero-list-enter-leave-states.component.ts +++ b/aio/content/examples/animations/src/app/hero-list-enter-leave-states.component.ts @@ -10,7 +10,7 @@ import { transition } from '@angular/animations'; -import { Heroes } from './hero.service'; +import { Hero } from './hero.service'; @Component({ selector: 'hero-list-enter-leave-states', @@ -59,5 +59,5 @@ import { Heroes } from './hero.service'; // #enddocregion animationdef }) export class HeroListEnterLeaveStatesComponent { - @Input() heroes: Heroes; + @Input() heroes: Hero[]; } diff --git a/aio/content/examples/animations/src/app/hero-list-enter-leave.component.ts b/aio/content/examples/animations/src/app/hero-list-enter-leave.component.ts index f27b5f10e1..3eed156873 100644 --- a/aio/content/examples/animations/src/app/hero-list-enter-leave.component.ts +++ b/aio/content/examples/animations/src/app/hero-list-enter-leave.component.ts @@ -10,7 +10,7 @@ import { transition } from '@angular/animations'; -import { Heroes } from './hero.service'; +import { Hero } from './hero.service'; @Component({ selector: 'hero-list-enter-leave', @@ -47,5 +47,5 @@ import { Heroes } from './hero.service'; // #enddocregion animationdef }) export class HeroListEnterLeaveComponent { - @Input() heroes: Heroes; + @Input() heroes: Hero[]; } diff --git a/aio/content/examples/animations/src/app/hero-list-groups.component.ts b/aio/content/examples/animations/src/app/hero-list-groups.component.ts index 12a57292f7..34fd8c207f 100644 --- a/aio/content/examples/animations/src/app/hero-list-groups.component.ts +++ b/aio/content/examples/animations/src/app/hero-list-groups.component.ts @@ -11,7 +11,7 @@ import { group } from '@angular/animations'; -import { Heroes } from './hero.service'; +import { Hero } from './hero.service'; @Component({ selector: 'hero-list-groups', @@ -76,5 +76,5 @@ import { Heroes } from './hero.service'; // #enddocregion animationdef }) export class HeroListGroupsComponent { - @Input() heroes: Heroes; + @Input() heroes: Hero[]; } diff --git a/aio/content/examples/animations/src/app/hero-list-inline-styles.component.ts b/aio/content/examples/animations/src/app/hero-list-inline-styles.component.ts index ed1bdb7646..8dab15c386 100644 --- a/aio/content/examples/animations/src/app/hero-list-inline-styles.component.ts +++ b/aio/content/examples/animations/src/app/hero-list-inline-styles.component.ts @@ -12,7 +12,7 @@ import { } from '@angular/animations'; // #enddocregion imports -import { Heroes } from './hero.service'; +import { Hero } from './hero.service'; @Component({ selector: 'hero-list-inline-styles', @@ -56,5 +56,5 @@ import { Heroes } from './hero.service'; // #enddocregion animationdef }) export class HeroListInlineStylesComponent { - @Input() heroes: Heroes; + @Input() heroes: Hero[]; } diff --git a/aio/content/examples/animations/src/app/hero-list-multistep.component.ts b/aio/content/examples/animations/src/app/hero-list-multistep.component.ts index 4e57896de5..f3aad073ab 100644 --- a/aio/content/examples/animations/src/app/hero-list-multistep.component.ts +++ b/aio/content/examples/animations/src/app/hero-list-multistep.component.ts @@ -12,7 +12,7 @@ import { AnimationEvent } from '@angular/animations'; -import { Heroes } from './hero.service'; +import { Hero } from './hero.service'; @Component({ selector: 'hero-list-multistep', @@ -59,7 +59,7 @@ import { Heroes } from './hero.service'; // #enddocregion animationdef }) export class HeroListMultistepComponent { - @Input() heroes: Heroes; + @Input() heroes: Hero[]; animationStarted(event: AnimationEvent) { console.warn('Animation started: ', event); diff --git a/aio/content/examples/animations/src/app/hero-list-timings.component.ts b/aio/content/examples/animations/src/app/hero-list-timings.component.ts index a300012e23..305cf78487 100644 --- a/aio/content/examples/animations/src/app/hero-list-timings.component.ts +++ b/aio/content/examples/animations/src/app/hero-list-timings.component.ts @@ -10,7 +10,7 @@ import { transition } from '@angular/animations'; -import { Heroes } from './hero.service'; +import { Hero } from './hero.service'; @Component({ selector: 'hero-list-timings', @@ -54,5 +54,5 @@ import { Heroes } from './hero.service'; // #enddocregion animationdef }) export class HeroListTimingsComponent { - @Input() heroes: Heroes; + @Input() heroes: Hero[]; } diff --git a/aio/content/examples/animations/src/app/hero-list-twoway.component.ts b/aio/content/examples/animations/src/app/hero-list-twoway.component.ts index 46d0c64a68..87e0109c7d 100644 --- a/aio/content/examples/animations/src/app/hero-list-twoway.component.ts +++ b/aio/content/examples/animations/src/app/hero-list-twoway.component.ts @@ -13,7 +13,7 @@ import { } from '@angular/animations'; // #enddocregion imports -import { Heroes } from './hero.service'; +import { Hero } from './hero.service'; @Component({ selector: 'hero-list-twoway', @@ -54,5 +54,5 @@ import { Heroes } from './hero.service'; // #enddocregion animationdef }) export class HeroListTwowayComponent { - @Input() heroes: Heroes; + @Input() heroes: Hero[]; } diff --git a/aio/content/examples/animations/src/app/hero-team-builder.component.ts b/aio/content/examples/animations/src/app/hero-team-builder.component.ts index e5413be50e..a46c41dcf0 100644 --- a/aio/content/examples/animations/src/app/hero-team-builder.component.ts +++ b/aio/content/examples/animations/src/app/hero-team-builder.component.ts @@ -1,40 +1,41 @@ import { Component } from '@angular/core'; -import { Heroes } from './hero.service'; +import { Hero, HeroService } from './hero.service'; @Component({ selector: 'hero-team-builder', template: `
+Switch between active/inactive on click.
-Animated effect on click, no persistend end styles.
-Animated effect on click, no persistent end styles.
+Switch between active/inactive on click. Define just one transition used in both directions.
-Switch between active/inactive on click. Define just one transition used in both directions using the <=> syntax.
-Enter and leave animations using the void state.
-Leave animation from the current computed height using the auto-style value *.
-Enter and leave animations with different easings, ease-in for enter, ease-out for leave.
-Enter and leave animations with three keyframes in each, to give the transition some bounce.
-Enter and leave animations with multiple properties animated in parallel with different timings.
-