You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
Hi everyone!
I'm trying to get a query response as a String but I'm getting an object instead...
The response is "my response".
When I call myService.query, I'm getting: "{"0":"m","1":"y","2":"/" ....}"
My service looks like this:
myApp.factory('myService', function($resource){
return $resource('myUrl', {}, {
query: {method:'GET', params:{}, isArray:false}
});
});
Any ideas?
Amira
Pawel Kozlowski
unread,
Feb 20, 2013, 11:11:04 AM2/20/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
Hi!
$resource, as it stands today, can only work with arrays or objects
returned from a backend, no raw strings.
CHange the output of your backend or switch to $http.