Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 8df4367

Browse files
BBlackwogkalpak
authored andcommitted
docs($resource): add status param to transformResponse signature
Add `status` param to `transformResponse` signature to keep inline with 1b74097. Closes #15041
1 parent e50e91c commit 8df4367

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ngResource/resource.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,13 @@ function shallowClearAndCopy(src, dst) {
162162
* transform function or an array of such functions. The transform function takes the http
163163
* request body and headers and returns its transformed (typically serialized) version.
164164
* By default, transformRequest will contain one function that checks if the request data is
165-
* an object and serializes to using `angular.toJson`. To prevent this behavior, set
165+
* an object and serializes it using `angular.toJson`. To prevent this behavior, set
166166
* `transformRequest` to an empty array: `transformRequest: []`
167167
* - **`transformResponse`** –
168-
* `{function(data, headersGetter)|Array.<function(data, headersGetter)>}` –
168+
* `{function(data, headersGetter, status)|Array.<function(data, headersGetter, status)>}` –
169169
* transform function or an array of such functions. The transform function takes the http
170-
* response body and headers and returns its transformed (typically deserialized) version.
170+
* response body, headers and status and returns its transformed (typically deserialized)
171+
* version.
171172
* By default, transformResponse will contain one function that checks if the response looks
172173
* like a JSON string and deserializes it using `angular.fromJson`. To prevent this behavior,
173174
* set `transformResponse` to an empty array: `transformResponse: []`

0 commit comments

Comments
 (0)