Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

feat($resource): pass resource to the dynamic param function #4899

Closed
wants to merge 1 commit into from

Conversation

chirayuk
Copy link
Contributor

No description provided.

@ghost ghost assigned vojtajina Nov 12, 2013
return currentGroup;
},
id: function(data) {
if (data !== undefined) {
Copy link
Contributor

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;

Copy link
Contributor Author

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.

@vojtajina
Copy link
Contributor

I like this change. However, I don't think it needs to be part of the upcoming 1.2.1 "fix" release.

@chirayuk
Copy link
Contributor Author

No milestone was set.  I set the milestone to 1.2.x

@IgorMinar
Copy link
Contributor

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.
PS2: If you are a Googler, please sign the CLA as well to simplify the CLA verification process.

@IgorMinar
Copy link
Contributor

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); }
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants