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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -