My service is:
myApp.service(\'userService\', [ \'$http\', \'$q\', \'$rootScope\', \'$location\', function($http, $q, $rootScope, $location) { var defe
From your service method:
function serviceMethod() { return $timeout(function() { return { property: 'value' }; }, 1000); }
And in your controller:
serviceName .serviceMethod() .then(function(data){ //handle the success condition here var x = data.property });