News for hackers. Stuff that matters.
Re:How to Structure and Render Views in Backbone by AdrianRossouw on Tuesday March 18, 2014 @05:41PM (#7425205)
One one of my recent projects I found that using a state machine (http://statejs.org in this case) made the whole router malarky much easier to deal with.

It fires methods on transition etc, so you can make it load something when you go to this page, make it change this dialog when it goes to that.

The router was just something that changed the url when the application state changed.

There are no comments on this comment yet.