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
Post a Comment