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

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -