From 1a1d0c90bf2fedd8cd7f6bbd1ffd175611fa51fc Mon Sep 17 00:00:00 2001 From: Mikka Date: Fri, 25 Aug 2023 14:36:28 +0200 Subject: [PATCH] docs: remove MessageService information from HeroService section (#51501) PR Close #51501 --- aio/content/tutorial/tour-of-heroes/toh-pt4.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/aio/content/tutorial/tour-of-heroes/toh-pt4.md b/aio/content/tutorial/tour-of-heroes/toh-pt4.md index 1b0e90b9906..5cb71f3f14a 100644 --- a/aio/content/tutorial/tour-of-heroes/toh-pt4.md +++ b/aio/content/tutorial/tour-of-heroes/toh-pt4.md @@ -20,10 +20,7 @@ This tutorial creates a `HeroService` that all application classes can use to ge Instead of creating that service with the [`new` keyword](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Operators/new), use the [*dependency injection*](guide/dependency-injection) that Angular supports to inject it into the `HeroesComponent` constructor. Services are a great way to share information among classes that *don't know each other*. -Create a `MessageService` next and inject it in these two places. - -* Inject in `HeroService`, which uses the service to send a message -* Inject in `MessagesComponent`, which displays that message, and also displays the ID when the user clicks a hero +Create a `HeroService` next and inject it in the `HeroesComponent`, to provide hero data. ## Create the `HeroService`