Reputation: 41
I used Angular 2 Release and using Http
from @angular/http
.
When I call the method update
, generate this error:
"Property 'update' does not exist on type 'Http'".
On method Get
and Post
, Work fine.
Thanks.
Upvotes: 0
Views: 518
Reputation: 1574
There is no UPDATE
http verb. You should use http.put()
or http.patch()
depending on your use case.
Upvotes: 1
Reputation: 136174
I guess patch
method would be more appropriate here, since you are going to update a part of entity. Put
would be fine when you are replacing whole entity in operation.
Upvotes: 1