My service is:
myApp.service(\'userService\', [
\'$http\', \'$q\', \'$rootScope\', \'$location\', function($http, $q, $rootScope, $location) {
var defe
Return your promise , return deferred.promise.
It is the promise API that has the 'then' method.
https://docs.angularjs.org/api/ng/service/$q
Calling resolve does not return a promise it only signals the promise that the promise is resolved so it can execute the 'then' logic.
Basic pattern as follows, rinse and repeat
http://plnkr.co/edit/fJmmEP5xOrEMfLvLWy1h?p=preview