You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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']
...
}
The text was updated successfully, but these errors were encountered: