Join Kai Gittens for an in-depth discussion in this video Understanding Backbone events, part of Up and Running with Backbone.js.
…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 be used for DOM manipulation.…
- What is Backbone.js?
- Understanding how MVC libraries work
- Adding properties to a model
- Creating a collection of models
- Adding properties to a model view
- Loading model data on a web page
- Configuring routes
- Finding Backbone resources