Backbone.js Routers

Andy Appleton
London based JavaScript developer
Tweet

Backbone.js routers are used to keep track of state in your app. Routers translate a path in the URL or in a hash of the URL into application state. In other words, routers map a path to a function. In Backbone.js apps, routers are used to instantiate the views, models and collections your app needs.

Learn how to use routers in Backbone.js on this short screencast.

This video is part of the Backbone.js: A practical beginner’s guide course.

Free JavaScript: Novice to Ninja Sample

Get a free 32-page chapter of JavaScript: Novice to Ninja and receive updates on exclusive offers from SitePoint.

No Reader comments