title: $http.get(...).success is not a function
body: <p>i have this code:</p>
  
  <pre><code>app.controller('MainCtrl', function ($scope, $http){
    $http.get('api/url-api')
      .success(function (data, status, headers, config){
       }
  }
  </code></pre>
  
  <p>In my local enviroment, works ok, but in a server, return this error: </p>
  
  <blockquote>
    <p>TypeError: $http.get(...).success is not a function</p>
  </blockquote>
  
  <p>Any ideas? Thanks</p>