CHAPTER 5
Routers and Events
Everything that we have constructed so far has been pretty simple, consisting of a single page with a model or collection represented in view. If you’re considering using Backbone, it’s unlikely that you will limit your application scope to such basic structures. Instead, your app will be composed of multiple views, which will need to communicate with each other using events. It’s also quite common that you’ll want to manage navigation through some type of URL scheme.
This chapter takes a look at routers and events, which will provide the glue for any substantial Backbone application.
Backbone Routers
A route is a ...
Get Beginning Backbone.js now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.