title: Argument 'fn' is not a function, got Object angularjs [ng:areq]
body: <p>net service from my angular application. i'm using http post method. so when i'm calling the service it respond back but additionally i get "Argument 'fn' is not a function, got Object" error in chrome console.</p>
  
  <p>here is my http post method</p>
  
  <pre><code>$scope.SubmitData = function(AccId)
   {
     $scope.PostData = "REFRESH " + $scope.stbno + ""
     console.log($scope.PostData)
     $http(
     {
       method: 'POST',
       url: 'http://' + $scope.hostUrl + '/DuoSubscribe5/V5Services/V5CAS/Decomposer/ShortMessageExecutor.svc/json/ExecuteShortMessage',
       data:
       {
         "text": $scope.PostData,
         "fromNumber": $scope.FromNumber,
         "toNumber": $scope.ToNumber,
         "securityToken": $scope.stoken
       },
       headers:
       {
         'Content-Type': 'application/json; charset=utf-8'
       }
     }).success($mdDialog.show($mdDialog.alert().parent(angular.element(document.body)).title('Successfully Send').content().ariaLabel('Alert Dialog Demo').ok('OK').targetEvent())).error($mdDialog.show($mdDialog.alert().parent(angular.element(document.body)).content('Refresh failed...').ariaLabel('Alert Dialog Demo').ok('OK').targetEvent()));
   }
  </code></pre>
  
  <p>here i'm using ui-route to navigate through pages</p>
  
  <pre><code> .config(['$httpProvider', '$stateProvider', '$urlRouterProvider', function(httpProvider, $stateProvider, $urlRouterProvider) {
        $urlRouterProvider.otherwise('/Add_Refresh');
        $stateProvider
          .state('Add_Refresh', {
            url: '/Add_Refresh',
            templateUrl: 'refresh_partial/refresh_add_partial.html',
            controller: 'AppCtrl'
          })
    }])
  </code></pre>