title: $http POST response from service to controller
body: <p>How to get the response from Service in below case??</p>
  
  <p><strong>Service:</strong></p>
  
  <pre><code>app.factory('ajaxService', function($http) {
      updateTodoDetail: function(postDetail){
          $http({
              method: "POST",
              headers: {'Content-Type': 'application/x-www-form-urlencoded'},
              url: post_url,
              data: $.param({detail: postDetail})
          })
          .success(function(response){
              //return response;
          });
      }
  })
  </code></pre>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>updated_details = 'xyz';
  ajaxService.updateTodoDetail(updated_details);
  </code></pre>
  
  <p>In th above case, i <strong>POST the data through Controller</strong> and it was working fine but now i want the response to come in my Controller.</p>
  
  <p>How to achive that??</p>