Skip to content

Commit 720012e

Browse files
committed
docs(resource): clarify success callback arguments
Closes angular#7730
1 parent 3adfe5b commit 720012e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ngResource/resource.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ function shallowClearAndCopy(src, dst) {
209209
* - non-GET instance actions: `instance.$action([parameters], [success], [error])`
210210
*
211211
*
212-
* Success callback is called with (value, responseHeaders) arguments. Error callback is called
212+
* Success callback is called with (value, responseHeaders) arguments, where the value is
213+
* the populated resource instance or collection object. The error callback is called
213214
* with (httpResponse) argument.
214215
*
215216
* Class actions return empty instance (with additional properties below).

0 commit comments

Comments
 (0)