concept DOM event in category aurelia

This is an excerpt from Manning's book Aurelia in Action.
Aurelia’s binding system also handles DOM events. Events raised on the view, such as input value change, checkbox checked, and button clicked, are connected to corresponding view-model methods via binding commands. Binding commands in Aurelia are declared in the view template and are used to connect a view event with a view-model method, such as delegate and trigger—we’ll delve into these in detail in chapter 4. As in the case of binding, Aurelia provides tools (such as binding behaviors, which you’ll encounter in chapter 3) to control when and why the view-model is notified of events raised from the view. Aurelia’s event-handling workflow is illustrated in figure 1.8.
Handling DOM events in Aurelia is a piece of cake and follows the same conventions that you’re now familiar with. In Aurelia, you can handle DOM events by adding .delegate or .trigger after specifying an event name on an element (either standard HTML or a custom element), and then specifying an Aurelia function to be called when that event is fired. For example, click.delegate='addBook()' reads thus: “On click, delegate the clicked event to the addBook() view-model method.” Figure 4.9 depicts the syntax for handling DOM events in Aurelia.