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

docs(ngResource): Fix error in one of the code examples #9069

Closed
wants to merge 1 commit into from

Conversation

gkalpak
Copy link
Member

@gkalpak gkalpak commented Sep 13, 2014

Closes #8948

@gkalpak
Copy link
Member Author

gkalpak commented Sep 14, 2014

Hm, why did the Travis build failed ?
Is it something wrong with the commit ? (It is only docs changes.)

@caitp
Copy link
Contributor

caitp commented Sep 14, 2014

SL flake, don't worry about it

@@ -187,7 +187,7 @@ function shallowClearAndCopy(src, dst) {
* read, update, delete) on server-side data like this:
* ```js
* var User = $resource('/user/:userId', {userId:'@id'});
* var user = User.get({id:123}, function() {
* var user = User.get({userId:123}, function() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this change is really correct, needs some investigation.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@caitp:
There is a more detailed explanation here: #8948
If that helps, in the same ngDoc (a few lines further down) there is the same example (twice) and the correct property name is used.

@petebacondarwin
Copy link
Contributor

This was correct up to recently when I merged a doc change that actually broke it. See #8507

@gkalpak gkalpak deleted the fix-docs-example-ngResource branch September 19, 2014 18:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Strange behaviour of '@'-prefixed parameter values in ngResource resource action with GET
4 participants