You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace wrong mention of 'heroService.delete()' with 'heroService.deleteHero()' because 'heroService.delete()' doesn't exist and 'heroService.deleteHero()' should be mentioned instead
Resolvesangular#45636
PR Closeangular#45637
Copy file name to clipboardExpand all lines: aio/content/tutorial/toh-pt6.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -298,7 +298,7 @@ Add the `delete()` handler to the component class.
298
298
Although the component delegates hero deletion to the `HeroService`, it remains responsible for updating its own list of heroes.
299
299
The component's `delete()` method immediately removes the *hero-to-delete* from that list, anticipating that the `HeroService` will succeed on the server.
300
300
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**.
0 commit comments