Created
July 31, 2014 13:56
-
-
Save renatomattos2912/8cd25ca0b66ade6cf9a2 to your computer and use it in GitHub Desktop.
Metodo $http do angular com parametros
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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