Angular
Building a CRUD Application with Angular & ASP.Net Core - Services in Angular PUT

Implementing PUT in our service

PRO

Implementing PUT in our service

We just finished implementing our PUT method in our service. We used the HttpClient to make a PUT request to our .NET backend API.

It's important to remember that when making a PUT request we added the ID of the item to the URL that we wanted to edit. Not only did we edit add the id to the URL but we also passed the entire edited Camp object as our payload. These two things are imporant aspects of PUT.