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.

Tags: Backbone.js
Andy is a London based JavaScript developer at GoCardless, the only payment provider startup to offer a Direct Debit API. While he primarily works with JavaScript on the front end, he also writes Ruby, HTML, and CSS, and has a bit of a fixation with Node.js

Free Guide:

How to Choose the Right Charting Library for Your Application

How do you make sure that the charting library you choose has everything you need? Sign up to receive this detailed guide from FusionCharts, which explores all the factors you need to consider before making the decision.

No Reader comments

Special Offer
Free course!

Git into it! Bonus course Introduction to Git is yours when you take up a free 14 day SitePoint Premium trial.