-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default route #1
Comments
Did you run the application through the provided server? |
I tried running the demo app, and that worked fine (with its minified and uglified code though stepping through was not easy). When I downloaded the source and tried running it though the app failed. Blank page, and I added a console.log('hi') into the default router (index function). It never got hit. When I added the above fix with *path instead of a blank string it worked fine. |
@tmjfitch how did you run the app? Did you use the The route doesn't need to be changed. |
@tbranyen Thanks Tim, like I said, I'm a backbone newb :) for now I'll set the |
No problem man, lemme know if that doesn't work. |
The code in index.js:
routes: {
"": "index"
}
didn't work for me. I'm a newbie to backbone.js but I tried using:
routes: {
"*path": "index"
}
to make a default route and it appears to be working.
The text was updated successfully, but these errors were encountered: