JavaScript
Article
By Andy Appleton

Backbone.js Routers

By Andy Appleton
Last chance to win! You'll get a... FREE 6-Month Subscription to SitePoint Premium Plus you'll go in the draw to WIN a new Macbook SitePoint 2017 Survey Yes, let's Do this It only takes 5 min

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.

--ADVERTISEMENT--

More:
Login or Create Account to Comment
Login Create Account
Recommended
Sponsors
Get the most important and interesting stories in tech. Straight to your inbox, daily.
Is it good?Is it good?