Skip to content

Commit b5b0a50

Browse files
Ilya Marchikdylhunn
authored andcommitted
docs: fix typo (angular#45637)
Replace wrong mention of 'heroService.delete()' with 'heroService.deleteHero()' because 'heroService.delete()' doesn't exist and 'heroService.deleteHero()' should be mentioned instead Resolves angular#45636 PR Close angular#45637
1 parent 7d2a619 commit b5b0a50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aio/content/tutorial/toh-pt6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ Add the `delete()` handler to the component class.
298298
Although the component delegates hero deletion to the `HeroService`, it remains responsible for updating its own list of heroes.
299299
The component's `delete()` method immediately removes the *hero-to-delete* from that list, anticipating that the `HeroService` will succeed on the server.
300300

301-
There's really nothing for the component to do with the `Observable` returned by `heroService.delete()` **but it must subscribe anyway**.
301+
There's really nothing for the component to do with the `Observable` returned by `heroService.deleteHero()` **but it must subscribe anyway**.
302302

303303
<div class="alert is-important">
304304

0 commit comments

Comments
 (0)