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

property name started with '$' not included in object return from $resources #6080

Closed
angelochen960 opened this issue Feb 1, 2014 · 2 comments

Comments

@angelochen960
Copy link

Hi,
here is a simple gist:https://gist.github.com/angelochen960/8749530
the json returned from server has this

{
   "$content": "blah",
   "title": "ipsum"
}

When I use $http to get, result is correct, but if I use $resources, I got only

{
   "title": "ipsum"
}

if I use angularjs 1.0.7, I got the $content as well, only when it's 1.2.10, why?

gist is here:
https://gist.github.com/angelochen960/8749530
thanks

@caitp
Copy link
Contributor

caitp commented Feb 1, 2014

I believe this should be fixed by #5666 --- and it is http://plnkr.co/edit/qzInQjcOeNEC2ZmTILv7?p=preview (this was a regression introduced in 1.2.3)

@angelochen960
Copy link
Author

Thanks, that's the issue, I use 1.2.5 for now, don't have the problem, the latest version is 1.2.10, that has this problem.

caitp pushed a commit to caitp/angular.js that referenced this issue Feb 4, 2014
… requests/responses

ngResource no longer filters properties prefixed with a single "$" character from requests or
responses, correcting a regression introduced in 1.2.6 (cb29632).

Closes angular#5666
Closes angular#6080
Closes angular#6033
caitp pushed a commit to caitp/angular.js that referenced this issue Feb 4, 2014
… requests/responses

ngResource no longer filters properties prefixed with a single "$" character from requests or
responses, correcting a regression introduced in 1.2.6 (cb29632).

Closes angular#5666
Closes angular#6080
Closes angular#6033
caitp pushed a commit that referenced this issue Feb 4, 2014
… requests/responses

ngResource no longer filters properties prefixed with a single "$" character from requests or
responses, correcting a regression introduced in 1.2.6 (cb29632) which caused shallowCopy and
shallowClearAndCopy to ignore properties prefixed with a single "$".

Closes #5666
Closes #6080
Closes #6033
@Narretz Narretz marked this as a duplicate of #6060 Jul 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants