docs(animations): Added consistency in code examples (#37081)

PR Close #37081
This commit is contained in:
Advaith3600 2020-07-09 10:55:29 +05:30 committed by atscott
parent 209a365511
commit c40cbecdd1
3 changed files with 8 additions and 8 deletions

View File

@ -111,7 +111,7 @@ Let's assume that we are routing from the *Home => About*.
The animation code does the following after styling the views:
* `query(':enter style({ left: '-100%'})` matches the view that is added and hides the newly added view by positioning it to the far left.
* `query(':enter', style({ left: '-100%' }))` matches the view that is added and hides the newly added view by positioning it to the far left.
* Calls `animateChild()` on the view that is leaving, to run its child animations.
* Uses `group()` function to make the inner animations run in parallel.
* Within the `group()` function: