AngularJs: $resource: Unexpected behaviour while using $query action method -


I'm trying to get data using a Query Activity method from a cool service using the Angular $ resource < / P>

When I MyService.query (); I used the default query method as : I got the following error:

[$ resource: badcfg] Error in resource configuration found the expected response to keep an array But an object was found

Now, when the query is overloaded, the following error is expected which is expected.

  'query': {method: 'gET', isArray: true}   

But the issue is that I set ISArray to false, Still no error Why? I should have got the same error in the case of the former.

What am I missing here?

Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -