December 2013
Beginner
304 pages
7h 21m
English
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 ...
Read now
Unlock full access