What is the difference between defer object promise and promise from $resource
service?
I know, that in some cases one uses $q
service to create deferer
, then resolve response and return promise.
Others in the same time might do something like return $resource(...).get().$promise;
.
What is the diff. between those two approaches?