From 2b2146bc58a1289c204cdd84e792eeab0a954f0d Mon Sep 17 00:00:00 2001 From: Sonu Kapoor Date: Mon, 22 Jun 2020 08:38:48 -0400 Subject: [PATCH] docs: Uses correct component in the `MessageService` (#37666) This commit uses the correct component (`HeroesComponent`) in the. `MessageService`. Previously, the `MessageService` was using `HeroeService`. Closes #37654 PR Close #37666 --- aio/content/examples/toh-pt4/src/app/heroes/heroes.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/examples/toh-pt4/src/app/heroes/heroes.component.ts b/aio/content/examples/toh-pt4/src/app/heroes/heroes.component.ts index a631a85103..5cfb834e69 100644 --- a/aio/content/examples/toh-pt4/src/app/heroes/heroes.component.ts +++ b/aio/content/examples/toh-pt4/src/app/heroes/heroes.component.ts @@ -33,7 +33,7 @@ export class HeroesComponent implements OnInit { onSelect(hero: Hero): void { this.selectedHero = hero; - this.messageService.add(`HeroService: Selected hero id=${hero.id}`); + this.messageService.add(`HeroesComponent: Selected hero id=${hero.id}`); } // #docregion getHeroes