title: How to assign properties/methods to AngularJS services
body: <p><strong>i have created an angular service:</strong></p>
  
  <pre><code>app.service('myService', ['$http', '$q', function($http, $q){
      var getInfo = function(){
          return  $http({
              method: 'GET',
              url: 'X'
          });
      };
  }]);
  </code></pre>
  
  <p><strong>and the controller doesn't recognice it:</strong></p>
  
  <pre><code>app.controller('myController', ['$scope', 'myService', function ($scope, myService) {
  
  
      myService.getInfo()
      .success(function(data, status, headers) {
  
      })
      .error(function(data, status, headers) {
  
      })
  
  }]);
  </code></pre>
  
  <p><strong>i get this error in the console:</strong></p>
  
  <pre><code>TypeError: Object [object Object] has no method 'getInfo'
  </code></pre>
  
  <p><strong>what do i missing?</strong></p>