Skip to content

Commit

Permalink
docs: update for hero service name change (#22920)
Browse files Browse the repository at this point in the history
PR Close #22920
  • Loading branch information
jbogarthyde authored and alxhub committed Mar 29, 2018
1 parent 07d33d4 commit de0b13d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aio/content/guide/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ to every `HttpClient` save method.
### Making a POST request

Apps often POST data to a server. They POST when submitting a form.
In the following example, the `HeroService` posts when adding a hero to the database.
In the following example, the `HeroesService` posts when adding a hero to the database.

<code-example
path="http/src/app/heroes/heroes.service.ts"
Expand Down Expand Up @@ -350,7 +350,7 @@ The component isn't expecting a result from the delete operation, so it subscrib

<div class="alert is-important">

You must call _subscribe()_ or nothing happens. Just calling `HeroService.deleteHero()` **does not initiate the DELETE request.**
You must call _subscribe()_ or nothing happens. Just calling `HeroesService.deleteHero()` **does not initiate the DELETE request.**

</div>

Expand Down Expand Up @@ -398,7 +398,7 @@ req.subscribe();
### Making a PUT request

An app will send a PUT request to completely replace a resource with updated data.
The following `HeroService` example is just like the POST example.
The following `HeroesService` example is just like the POST example.

<code-example
path="http/src/app/heroes/heroes.service.ts"
Expand All @@ -418,7 +418,7 @@ We have discussed the basic HTTP functionality in `@angular/common/http`, but so
Other aspects of an outgoing request can be configured via the options object
passed as the last argument to the `HttpClient` method.

You [saw earlier](#adding-headers) that the `HeroService` sets the default headers by
You [saw earlier](#adding-headers) that the `HeroesService` sets the default headers by
passing an options object (`httpOptions`) to its save methods.
You can do more.

Expand Down

0 comments on commit de0b13d

Please sign in to comment.