Skip to content

Commit

Permalink
docs(upgrade): Add not to explain heroes token for heroesService
Browse files Browse the repository at this point in the history
  • Loading branch information
bertyhell committed Sep 25, 2017
1 parent cae80f9 commit 4c50615
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions aio/content/guide/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,14 @@ delete them once the upgrade is over.
It's also recommended to export the `heroesServiceFactory` function so that Ahead-of-Time
compilation can pick it up.

<div class="l-sub-section">

Note that the 'heroes' string inside the factory refers to the AngularJS `HeroesService`.
It is common in AngularJS apps to chose a service name for the token (e.g. heroes)
and append the Service suffix to create the class name (e.g. heroesService)

</div>

<code-example path="upgrade-module/src/app/ajs-to-a-providers/ajs-upgraded-providers.ts" title="ajs-upgraded-providers.ts">
</code-example>

Expand Down

0 comments on commit 4c50615

Please sign in to comment.