docs(ngResource): clarify behaviour of $promise

Closes #6753
This commit is contained in:
Alex Sanford
2014-03-19 15:37:50 -03:00
committed by Caitlin Potter
parent 3f9f1ad502
commit 08354ae1f7

View File

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