mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
parent
13d82ce248
commit
0807d13201
1 changed files with 1 additions and 1 deletions
|
|
@ -389,7 +389,7 @@ In the following example, the `HeroesService` makes an HTTP POST request when ad
|
|||
The `HttpClient.post()` method is similar to `get()` in that it has a type parameter, which you can use to specify that you expect the server to return data of a given type. The method takes a resource URL and two additional parameters:
|
||||
|
||||
* *body* - The data to POST in the body of the request.
|
||||
* *options*` - An object containing method options which, in this case, [specify required headers](#adding-headers).
|
||||
* *options* - An object containing method options which, in this case, [specify required headers](#adding-headers).
|
||||
|
||||
The example catches errors as [described above](#error-details).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue