Skip to content

Commit c40cbec

Browse files
Advaith3600atscott
authored andcommitted
docs(animations): Added consistency in code examples (angular#37081)
PR Close angular#37081
1 parent 209a365 commit c40cbec

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

aio/content/examples/animations/src/app/animations.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ export const slideInAnimation =
3232
// #enddocregion style-view
3333
// #docregion query
3434
query(':enter', [
35-
style({ left: '-100%'})
35+
style({ left: '-100%' })
3636
]),
3737
query(':leave', animateChild()),
3838
group([
3939
query(':leave', [
40-
animate('300ms ease-out', style({ left: '100%'}))
40+
animate('300ms ease-out', style({ left: '100%' }))
4141
]),
4242
query(':enter', [
43-
animate('300ms ease-out', style({ left: '0%'}))
43+
animate('300ms ease-out', style({ left: '0%' }))
4444
])
4545
]),
4646
query(':enter', animateChild()),
@@ -56,15 +56,15 @@ export const slideInAnimation =
5656
})
5757
]),
5858
query(':enter', [
59-
style({ left: '-100%'})
59+
style({ left: '-100%' })
6060
]),
6161
query(':leave', animateChild()),
6262
group([
6363
query(':leave', [
64-
animate('200ms ease-out', style({ left: '100%'}))
64+
animate('200ms ease-out', style({ left: '100%' }))
6565
]),
6666
query(':enter', [
67-
animate('300ms ease-out', style({ left: '0%'}))
67+
animate('300ms ease-out', style({ left: '0%' }))
6868
])
6969
]),
7070
query(':enter', animateChild()),

aio/content/examples/animations/src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h1>Animations</h1>
1717
</nav>
1818

1919
<!-- #docregion route-animations-outlet -->
20-
<div [@routeAnimations]="prepareRoute(outlet)" >
20+
<div [@routeAnimations]="prepareRoute(outlet)">
2121
<router-outlet #outlet="outlet"></router-outlet>
2222
</div>
2323
<!-- #enddocregion route-animations-outlet -->

aio/content/guide/route-animations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Let's assume that we are routing from the *Home => About*.
111111

112112
The animation code does the following after styling the views:
113113

114-
* `query(':enter style({ left: '-100%'})` matches the view that is added and hides the newly added view by positioning it to the far left.
114+
* `query(':enter', style({ left: '-100%' }))` matches the view that is added and hides the newly added view by positioning it to the far left.
115115
* Calls `animateChild()` on the view that is leaving, to run its child animations.
116116
* Uses `group()` function to make the inner animations run in parallel.
117117
* Within the `group()` function:

0 commit comments

Comments
 (0)