You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that restangularizeElement() is erroneously setting the parentResource to the new record created that is returned by my service in the then() callback argument. On POST "creation" of a resource at my endpoint, my service returns a fully hydrated json record of the object. However, even though this restangularized Element was created with "null" as the first argument (no parent resource), further examination reveals that the object passed to the then() callback erroneously has parentResource set as well as a nulled "route" property. This was unexpected, however I have not yet reviewed the Restangular source in this area.
I love Restangular and it's been a blast to work with. Awesome work and my compliments to the contributors. I hope to contribute in the near future.
The text was updated successfully, but these errors were encountered:
miiihi
pushed a commit
to miiihi/restangular
that referenced
this issue
Nov 26, 2014
It appears that restangularizeElement() is erroneously setting the parentResource to the new record created that is returned by my service in the then() callback argument. On POST "creation" of a resource at my endpoint, my service returns a fully hydrated json record of the object. However, even though this restangularized Element was created with "null" as the first argument (no parent resource), further examination reveals that the object passed to the then() callback erroneously has parentResource set as well as a nulled "route" property. This was unexpected, however I have not yet reviewed the Restangular source in this area.
I love Restangular and it's been a blast to work with. Awesome work and my compliments to the contributors. I hope to contribute in the near future.
The text was updated successfully, but these errors were encountered: