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

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -