Skip to content

Commit

Permalink
docs: fix naming miss and improve anchor reference in router guide (a…
Browse files Browse the repository at this point in the history
…ngular#30225)

Signed-off-by: Richard Lea <chigix@zoho.com>

PR Close angular#30225
  • Loading branch information
chigix authored and BioPhoton committed May 21, 2019
1 parent 48f7fdf commit 91d6c01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aio/content/guide/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -2261,7 +2261,7 @@ For the `@routeAnimation` transitions to key off states, you'll need to provide

</code-example>

The `@routeAnimation` property is bound to the `getAnimationData` with the provided `routerOutlet` reference, so you'll need to define that function in the `AppComponent`. The `getAnimationData` function returns the animation property from the `data` provided through the `ActivatedRoute`. The `animation` property matches the `transition` names you used in the `slideDownAnimation` defined in `animations.ts`.
The `@routeAnimation` property is bound to the `getAnimationData` with the provided `routerOutlet` reference, so you'll need to define that function in the `AppComponent`. The `getAnimationData` function returns the animation property from the `data` provided through the `ActivatedRoute`. The `animation` property matches the `transition` names you used in the `slideInAnimation` defined in `animations.ts`.

<code-example path="router/src/app/app.component.2.ts" linenums="false" header="src/app/app.component.ts (router outlet)" region="function-binding">

Expand Down Expand Up @@ -2677,7 +2677,7 @@ display the `Crisis Center Home` and `Crisis Detail` route components.

The `Crisis Detail` route is a child of the `Crisis List`. The router [reuses components](#reuse)
by default, so the `Crisis Detail` component will be re-used as you select different crises.
In contrast, back in the `Hero Detail` route, the component was recreated each time you selected a different hero.
In contrast, back in the `Hero Detail` route, [the component was recreated](#snapshot-the-no-observable-alternative) each time you selected a different hero from the list of heroes.

At the top level, paths that begin with `/` refer to the root of the application.
But child routes *extend* the path of the parent route.
Expand Down

0 comments on commit 91d6c01

Please sign in to comment.