0
내가 마리오네트 라우팅은 마리오네트 라우팅
@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
console.log "before"
@Arc.start()
console.log "after"
메시지 from listContacts
를 기록하지 않습니다 localhost:3000/notes
를 방문 동작하지 않습니다 동작하지 않습니다. 내가 pushState: false
을 방문하면 localhost:3000/#notes
을 방문하면 작동하지 않습니다.