docs(aio): change `HeroService` to `MessagesComponent` (#23397)

Someone probably forgot to change this when coping the sentence from a previous section.

PR Close #23397
This commit is contained in:
Eyal Cherevatzki 2018-04-16 18:15:38 +03:00 committed by Igor Minar
parent d11b249d36
commit c3280b2c2f
1 changed files with 1 additions and 1 deletions

View File

@ -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">