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:
parent
3a698e2d08
commit
2b2146bc58
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue