What is the difference between a promise of a promise object and a promise from a service $resource?
I know that in some cases a service is defererused to create $q, then we resolve the answer and return the promise.
Others at the same time can do something like return $resource(...).get().$promise;.
What is diff. between these two approaches?
source
share