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

Creating DELETE in our service

PRO

Creating DELETE in our service

In this video, we hooked up our components click handler to our service.

DELETE is a pretty simple http request. We simply pass along the ID of the item that we want to delete. We updated our BehaviorSubject by filtering out the item that was deleted.

Next up we will look at what's happening in the backend when we make our DELETE request from the frontend.