angularjs - Impossible to pass scope in http as data -


i want pass $scope.data data in $http-request. $scope.data not empty!

$http({     method: 'put',     url: url,     data: $scope.data })... 

but when sending request data empty.

try shortcut method

from angular docs under shortcut methods section here

$http.put(url, data, config)  .then(    function(response){      // success callback    },     function(response){      // failure callback  }); 

Comments

Popular posts from this blog

ios - Is 'init' forbidden as *part* of a variable name? -

javascript - Why Selenium can't find an element that is graphically visible -

qt - Microsoft FTP Service 451 The parameter is incorrect -