8000 docs(ngResource): clarify behaviour of $promise · angular/angular.js@7a29436 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 7a29436

Browse files
alexsanfordcaitp
authored andcommitted
docs(ngResource): clarify behaviour of $promise
Closes #6753
1 parent fbab287 commit 7a29436

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ngResource/resource.js

Lines changed: 3 additions & 0 deletions
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)
0