concept book component in category aurelia
appears as: books component, book component, The book component, books components

This is an excerpt from Manning's book Aurelia in Action.
In chapter 2, you set up a parent-child relationship between the books component and the book-list component, as shown in figure 6.4.
Next, you’ll move the implementation of the removeBook method from the book-list component to the book component. This method raises an event on the Event Aggregator that a specific book has been removed. Following this, you’ll create a method to toggle the edit mode to be called when the Edit button from the view is clicked. Finally, you’ll set up the relevant event subscription and event-cleanup behavior in the subscribeToEvents and unbind methods.