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

Having app events coming from the Router #6

Open
mulderp opened this issue Sep 22, 2013 · 1 comment
Open

Having app events coming from the Router #6

mulderp opened this issue Sep 22, 2013 · 1 comment

Comments

@mulderp
Copy link

mulderp commented Sep 22, 2013

I am exploring Backbone frameworks, and I saw something in Giraffe that looks interesting to me:

'someHashLocation/:andItsParams': 'some:appEvent'

Could events coming from URL changes automatically be translated into events of the EventBus?

PS I think the example is broken, I get a $ undefined

@efeminella
Copy link
Owner

Sure, though I wouldn't necessarily recommend coupling Router events to EventBroker events, and vice-versa. The two should remain mutually exclusive; a cleaner way to facilitate this would be to simply have the Router handle its events and forward them to corresponding EventBroker events, effectively fulfilling the use-case, while allowing the two to remain independent of one another, with only the Router having knowledge of the EventBroker.

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