angular.js/docs/content
Pete Bacon Darwin a644ca7b4e fix(resource): check whether response matches action.isArray
When using $resource you must setup your actions carefully based on what the server returns.
If the server responds to a request with an array then you must configure the action with
`isArray:true` and vice versa.  The built-in `get` action defaults to `isArray:false` and the
`query` action defaults to `isArray:true`, which is must be changed if the server does not do this.
Before the error message was an exception inside angular.copy, which didn't explain what the
real problem was. Rather than changing the way that angular.copy works, this change ensures that
a better error message is provided to the programmer if they do not set up their resource actions
correctly.

Closes #2255, #1044
2013-07-31 21:17:37 +01:00
..
api docs(module): fixed module example and corrected typos 2012-09-06 16:06:23 -07:00
cookbook docs(cookbook/helloworld): display "World" if no name is entered 2013-06-20 14:39:16 +01:00
error fix(resource): check whether response matches action.isArray 2013-07-31 21:17:37 +01:00
guide feat(directive): support as instance syntax 2013-07-31 10:30:58 -07:00
misc docs(contribute): improve git instructions 2013-07-10 22:18:44 +02:00
notes feat(ngdocs): support popover, foldouts and foldover annotations 2013-06-17 22:00:54 -07:00
tutorial docs(tutorial): mention the controller along the scope 2013-07-27 17:13:53 +01:00