2 ms·
One one of my recent projects I found that using a state machine (http://statejs.org http://statejs.org in this case) made the whole router malarky much easier
by AdrianRossouw 13y ago
One one of my recent projects I found that using a state machine (http://statejs.org 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.