My service is:
myApp.service(\'userService\', [ \'$http\', \'$q\', \'$rootScope\', \'$location\', function($http, $q, $rootScope, $location) { var defe
To return a resolved promise, you can use:
return $q.defer().resolve();
If you need to resolve something or return data:
return $q.defer().resolve(function(){ var data; return data; });