From the course: Learning Backbone.js

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Understanding Backbone events

Understanding Backbone events - Backbone.js Tutorial

From the course: Learning Backbone.js

Start my 1-month free trial

Understanding Backbone events

Models, collections, and views are the key backbone components and are the main focus of this course. But I want to take a few moments to discuss events. As mentioned in an earlier movie, the events component is separated out into its own object. However, its core code is mixed into most of the other backbone components. So, for example. When we use the add, remove, change and on methods while working with models in chapter two. We were accessing event code that was mixed in to our model code. Now events are important, and as you continue your backbone education, I encourage you to learn as much about them as you can. But most backbone events are used for listening for changes, that occur inside a web app. And, those changes usually need to be stored as data somewhere. As mentioned in an earlier movie, that's out of scope for this up and running course. But there is a small piece of event code tied to views that you can start using right away. Views have a small events object that can…

Contents