clickand the template statement is
EventEmitter.emit(data)to emit an event, passing in message data, which can be anything.
ItemDetailComponentthat presents item information and responds to user actions. Although the
ItemDetailComponenthas a delete button, it doesn't contain the functionality to delete the hero. It can only raise an event reporting the user's delete request.src/app/item-detail/item-detail.component.html (template)
deleteRequestevent of the
ItemDetailComponentas follows.src/app/app.component.html (event-binding-to-component)