title: angularjs: $http is not defined in service
body: <p>I have 3 files:</p>
  
  <p><em>app.js</em></p>
  
  <pre><code>angular.module("starweb", ["ngRoute", "ngAnimate", "ui.bootstrap"])
         .config(function ($routeProvider) {
         $routeProvider  ....
  </code></pre>
  
  <p><em>addHostingController.js</em></p>
  
  <pre><code>  angular.module("starweb")
    .controller("addHostingCtrl", function ($scope, domainService) {
          $scope.data.domains = domainService.getDomain();
  }
  </code></pre>
  
  <p><em>domainService.js</em></p>
  
  <pre><code>angular.module("starweb")
  .constant("domainList", "http://localhost:15536/api/product/xxxx")
  .service("domainService", function ($http, $q,domainList) {
      return ({
          getDomain: GetDomains()
      });
  });
  
  function GetDomains() {
      $http.get(domainList).then(handleSuccess, handleError);
  }
  </code></pre>
  
  <p>On the page source, all 3 files are included (<em>app.js</em> first). Chrome shows <code>$http is undefined</code>, what's wrong with my setup ?</p>
  
  <p>Thanks all.</p>