© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
V. H. GarciaGetting Started with Angularhttps://doi.org/10.1007/978-1-4842-9206-8_12

12. Blog App Part 7: Deleting Posts

Victor Hugo Garcia1  
(1)
Santiago Del Estero, Santiago del Estero, Argentina
 

The logic that we will use to eliminate posts is very similar to the one we use to edit components. From the post component, which is responsible for showing each of the posts that the user has created, an event will trigger when the elimination icon is clicked.

This event will cause that in the class of the component, a method will be executed that will send the selected post to the Common Service. This will perform some operations with said post and issue a notification. ...

Get Getting Started with Angular: Create and Deploy Angular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.