Skip to content
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

Error pages #4

Open
rinatio opened this issue Sep 13, 2012 · 3 comments
Open

Error pages #4

rinatio opened this issue Sep 13, 2012 · 3 comments

Comments

@rinatio
Copy link

rinatio commented Sep 13, 2012

Error pages shouldn't be routes. When user hits refresh it shouldn't try to preform previous action again.

@tonydspaniard
Copy link
Contributor

I thought that routing to error pages would be an easier approach. What do you suggest?

@rinatio
Copy link
Author

rinatio commented Sep 13, 2012

Maybe an event triggering or just method calling. I think App.vent would fit good for this. You just call App.vent.trigger('error:http', 404) from any view and that's all. In main.js create App.vent.on('error:http', callback) handler.

What do you think about this?

@tonydspaniard
Copy link
Contributor

Didn't think about that approach and it makes sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants