We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello!
As title says, is there a way to get the callback parameters as one object, instead of separated function arguments?
What we have now: myRouteCallback(id, name)
myRouteCallback(id, name)
What I was thinking it would help me a lot: myRouteCallback(param) { param.id .. param.name..
myRouteCallback(param) { param.id .. param.name..
Cheers
The text was updated successfully, but these errors were encountered:
Just did it myself, subscribing to routed.add and:
var processRequest = function(params){ var request = { }; params.route._paramsIds.forEach(function(paramId, index) { request[paramId] = params.params[index]; }, this); return request; };
But there is a problem, im using _paramsIds , and it's suposed to be private. is this the only way to do it?
Sorry, something went wrong.
No branches or pull requests
Hello!
As title says, is there a way to get the callback parameters as one object, instead of separated function arguments?
What we have now:
myRouteCallback(id, name)
What I was thinking it would help me a lot:
myRouteCallback(param) { param.id .. param.name..
Cheers
The text was updated successfully, but these errors were encountered: