docs: fix missing code line from tutorial example (#40789)

In #40419 we move the code that creates the `heroes` object
above the code that updates the message service. But this moved
that line of code outside of the docregion that is displayed in
the tutorial ealier on, making it non-sensical.

This commit ensures that this line of code is now rendered in the
tutorial be moving it within the correct docregion.

Closes #40788

PR Close #40789
This commit is contained in:
Pete Bacon Darwin 2021-02-10 21:25:36 +00:00 committed by Joey Perrott
parent 013f7be0bc
commit d6440c1808
1 changed files with 1 additions and 1 deletions

View File

@ -25,8 +25,8 @@ export class HeroService {
// #docregion getHeroes, getHeroes-1
getHeroes(): Observable<Hero[]> {
// #enddocregion getHeroes-1
const heroes = of(HEROES);
// #enddocregion getHeroes-1
this.messageService.add('HeroService: fetched heroes');
// #docregion getHeroes-1
return heroes;