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
This commit is contained in:
Sonu Kapoor 2020-06-22 08:38:48 -04:00 committed by Andrew Kushnir
parent 3a698e2d08
commit 2b2146bc58
1 changed files with 1 additions and 1 deletions

View File

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