Created
January 29, 2015 16:53
-
-
Save workmaster2n/abf9abac623c25a77e5f to your computer and use it in GitHub Desktop.
routing v2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Arc = do(Backbone, Marionette) -> | |
App = new Marionette.Application | |
API = | |
listContacts: ()-> | |
console.log "from listContacts" | |
class MyRouter extends Marionette.AppRouter | |
appRoutes: | |
"notes" : "listContacts" | |
controller: API | |
App.router = new MyRouter() | |
App.on 'start', -> | |
console.log "in on start" | |
if Backbone.history | |
Backbone.history.start(pushStart: true) | |
App | |
@Arc.start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment