Skip to content

Commit da5db4b

Browse files
committed
docs($resource): re-phrase note in the docs (has to --> would)
As discussed in angular#13462 (comment).
1 parent 3694390 commit da5db4b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ngResource/resource.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,8 @@ function shallowClearAndCopy(src, dst) {
154154
* caching.
155155
* - **`timeout`** – `{number}` – timeout in milliseconds.<br />
156156
* **Note:** In contrast to {@link ng.$http#usage $http.config}, {@link ng.$q promises} are
157-
* **not** supported in $resource, because the same value has to be re-used for multiple
158-
* requests. If you are looking for a way to cancel requests, you should use the `cancellable`
159-
* option.
157+
* **not** supported in $resource, because the same value would be used for multiple requests.
158+
* If you are looking for a way to cancel requests, you should use the `cancellable` option.
160159
* - **`cancellable`** – `{boolean}` – if set to true, the request made by a "non-instance" call
161160
* will be cancelled (if not already completed) by calling `$cancelRequest()` on the call's
162161
* return value. Calling `$cancelRequest()` for a non-cancellable or an already

0 commit comments

Comments
 (0)