Skip to content

Commit 08354ae

Browse files
alexsanfordcaitp
authored andcommitted
docs(ngResource): clarify behaviour of $promise
Closes angular#6753
1 parent 3f9f1ad commit 08354ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ngResource/resource.js

+3
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ function shallowClearAndCopy(src, dst) {
199199
* On failure, the promise is resolved with the {@link ng.$http http response} object, without
200200
* the `resource` property.
201201
*
202+
* If an interceptor object was provided, the promise will instead be resolved with the value
203+
* returned by the interceptor.
204+
*
202205
* - `$resolved`: `true` after first server interaction is completed (either with success or
203206
* rejection), `false` before that. Knowing if the Resource has been resolved is useful in
204207
* data-binding.

0 commit comments

Comments
 (0)