-
Notifications
You must be signed in to change notification settings - Fork 27.4k
feat($resource): pass resource to the dynamic param function #4899
Conversation
return currentGroup; | ||
}, | ||
id: function(data) { | ||
if (data !== undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would do just return data && data.id;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed while refactoring to new test.
I like this change. However, I don't think it needs to be part of the upcoming 1.2.1 "fix" release. |
No milestone was set. I set the milestone to |
I'm sorry, but I wasn't able to verify your CLA signature. CLA signature is required for any code contributions to AngularJS. Please sign our CLA and ensure that the CLA signature email address and the email address in this PR's commits match. If you signed the CLA as a corporation, please let me know the company's name. Thanks a bunch! PS: If you signed the CLA in the past then most likely the email addresses don't match. Please sign the CLA again or update the email address in the commit of this PR. |
CLA signature verified! Thank you! Someone from the team will now triage your PR and it will be processed based on the determined priority (doc updates and fixes with tests are prioritized over other changes). |
@@ -433,7 +433,7 @@ angular.module('ngResource', ['ng']). | |||
var ids = {}; | |||
actionParams = extend({}, paramDefaults, actionParams); | |||
forEach(actionParams, function(value, key){ | |||
if (isFunction(value)) { value = value(); } | |||
if (isFunction(value)) { value = value(data); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add public docs for this change?
otherwise it looks good.
02dc2aa
to
fd2d6c0
Compare
cad9560
to
f294244
Compare
e8dc429
to
e83fab9
Compare
4dd5a20
to
998c61c
Compare
No description provided.