Skip to content

Commit

Permalink
docs(aio): change HeroService to MessagesComponent (angular#23397)
Browse files Browse the repository at this point in the history
Someone probably forgot to change this when coping the sentence from a previous section.

PR Close angular#23397
  • Loading branch information
Eyal Cherevatzki authored and IgorMinar committed Apr 16, 2018
1 parent d11b249 commit c3280b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aio/content/tutorial/toh-pt4.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ Open `MessagesComponent` and import the `MessageService`.

Modify the constructor with a parameter that declares a **public** `messageService` property.
Angular will inject the singleton `MessageService` into that property
when it creates the `HeroService`.
when it creates the `MessagesComponent`.

<code-example
path="toh-pt4/src/app/messages/messages.component.ts" region="ctor">
Expand Down

0 comments on commit c3280b2

Please sign in to comment.