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

Request: a helper to call a service on event #45

Open
jacomyma opened this issue Jul 10, 2013 · 1 comment
Open

Request: a helper to call a service on event #45

jacomyma opened this issue Jul 10, 2013 · 1 comment

Comments

@jacomyma
Copy link

A module cannot call a service. When I have nothing special to do but I to make a request from a module, I declare a hack, and the module calls the hack, and the hack makes the request. This hack is trivial, like:

{triggers: ['requestMyService']
,method: function(e){
this.request('myService', e.data)
}

So I suggest a helper in the service, so that I could declare it like that:
{
id: 'myService'
,triggers: ['requestMyService']
...
}

@Yomguithereal
Copy link
Collaborator

Hopefully this won't be a problem anymore with the reboot.

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