Skip to content

Instantly share code, notes, and snippets.

@workmaster2n
Created January 29, 2015 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save workmaster2n/abf9abac623c25a77e5f to your computer and use it in GitHub Desktop.
Save workmaster2n/abf9abac623c25a77e5f to your computer and use it in GitHub Desktop.
routing v2
@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