私はこのコードを持っています:
app.controller('MainCtrl', function ($scope, $http){
  $http.get('api/url-api')
    .success(function (data, status, headers, config){
     }
}私のローカル環境では問題なく動作しますが、サーバーでは次のエラーを返します。
TypeError:$ http.get(...)。successは関数ではありません
何か案は?ありがとう
then()ませんsuccess()
                .success構文は角度v1.4.3への正しい最高でした。古いドキュメントはこちら:code.angularjs.org/1.4.3/docs/api/ng/service/$http