Skip to content Skip to sidebar Skip to footer

Routers Apparently Doing Nothing Locally In Backbone.js

I recently was fiddling with Backbone.js and I got everything to work (Models/Views/Events/Collections) except the Router. Here is my js/router/test.js file. var Router = Backbone.

Solution 1:

The problem was that Backbone.js acts differently using file:/// URLs and needs to have a webserver serving the files.

The solution was to move my files into my ~/Sites folder and configure and start Apache. I followed the guide here: http://www.coolestguidesontheplanet.com/downtown/get-apache-mysql-php-and-phpmyadmin-working-osx-109-mavericks.

Post a Comment for "Routers Apparently Doing Nothing Locally In Backbone.js"