Skip to content

Instantly share code, notes, and snippets.

@renatomattos2912
Created July 31, 2014 13:56
Show Gist options
  • Save renatomattos2912/8cd25ca0b66ade6cf9a2 to your computer and use it in GitHub Desktop.
Save renatomattos2912/8cd25ca0b66ade6cf9a2 to your computer and use it in GitHub Desktop.
Metodo $http do angular com parametros
$http({
method: 'POST',
url: ref + 'user/rule/new',
data: $.param(cliente),
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}).success(function(cb){
console.log(cb);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment