Created
January 28, 2015 20:29
-
-
Save workmaster2n/7d1648ea799e4fee0292 to your computer and use it in GitHub Desktop.
routing issue
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
@App = do(Backbone, Marionette) -> | |
App = new Marionette.Application | |
App.on "initialize:after", -> | |
if Backbone.history | |
Backbone.history.start(pushState: true) | |
App | |
@App.start() |
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
@App.module "LocationApp", (LocationApp, App, Backbone, Marionette, $, _) -> | |
class LocationApp.Router extends Marionette.AppRouter | |
appRoutes: | |
"locations/:id" : "showLocation" | |
API = | |
showLocation: (id)-> | |
alert "mar works" | |
# LocationApp.Show.Controller.showLocation(id) | |
App.addInitializer -> | |
new LocationApp.Router | |
controller: API |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's my App file:
And here's my index file: