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:

committed by
Igor Minar

parent
d11b249d36
commit
c3280b2c2f
@ -348,7 +348,7 @@ Open `MessagesComponent` and import the `MessageService`.
|
|||||||
|
|
||||||
Modify the constructor with a parameter that declares a **public** `messageService` property.
|
Modify the constructor with a parameter that declares a **public** `messageService` property.
|
||||||
Angular will inject the singleton `MessageService` into that property
|
Angular will inject the singleton `MessageService` into that property
|
||||||
when it creates the `HeroService`.
|
when it creates the `MessagesComponent`.
|
||||||
|
|
||||||
<code-example
|
<code-example
|
||||||
path="toh-pt4/src/app/messages/messages.component.ts" region="ctor">
|
path="toh-pt4/src/app/messages/messages.component.ts" region="ctor">
|
||||||
|
Reference in New Issue
Block a user