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
{{ message }}
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.
varmyCustomHook=function(hook,next){// do something customnext();};varCustomService=Service.extend({before: {customMethod: [myCustomHook]},customMethod: function(params,cb){// Do some custom stuffcb();}});
Currently hooks only fire on our default service methods.
The text was updated successfully, but these errors were encountered:
I'm sorry to revive this old issue, but has anything changed with regards to this? It still feels useful to be able to attach hooks to any method a service has. Also, ES6 might have offered a few ways by now (like the spread operator) to not needing to know the exact signature of the custom service method?
Update: just found #165, apparently nothing new...
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'd like to be able to have a service like so:
Currently hooks only fire on our default service methods.
The text was updated successfully, but these errors were encountered: