From the course: Ember.js Essential Training

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Component events

Component events

- [Narrator] One of the most useful features of components is their ability to respond to events. Components can respond to touch, keyboard, mouse, form, and HTML5 drag and drop events. Events provide for our components to no longer be black boxes of UI in our ember application. The component uses events to both pass data to and from a component. This is our data binding in our application between that model and the view layer. Ember components can respond to a set of touch events, so a component can be designed to respond when a user touches to provide feedback to the user. Imagine an interface that would let you touch, rotate, pinch to zoom, et cetera on images or on a map. The standard keyboard events permit you to, for instance, build a live filtering list as the user is typing. The full list of mouse events gives you the ability to make your application respond when a user mouses over part of your application. The classic form events gives us the ability to build form UIs that…

Contents