Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit def7e96

Browse files
ksheedloIgorMinar
authored andcommitted
docs(minerr): add description for ngResource:badcfg
Closes angular#3509
1 parent e27fb4d commit def7e96

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/content/error/ngResource/badcfg.ngdoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@
22
@name ngResource:badcfg
33
@fullName Response does not match configured parameter
44
@description
5+
6+
This error occurs when the {@link api/ngResource.$resource `$resource`} service expects a response that can be deserialized as an array, receives an object, or vice versa.
7+
By default, all resource actions expect objects, except `query` which expects arrays.
8+
9+
To resolve this error, make sure your `$resource` configuration matches the actual format of the data returned from the server.
10+
11+
For more information, see the {@link api/ngResource.$resource `$resource`} API reference documentation.

0 commit comments

Comments
 (0)