It first shows a confirmation message when we click the delete button:

If we click Yes, it simply calls deletePerson method of
PersonAppService and shows a
notification
if operation succeed. Also, removes the person from the person array
using lodash library. We also added an import
statement before the @Component declaration: