Skip to content

Instantly share code, notes, and snippets.

@jbarros35
Created April 12, 2018 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbarros35/daab325b547e1f25dc27d3f0b53efdec to your computer and use it in GitHub Desktop.
Save jbarros35/daab325b547e1f25dc27d3f0b53efdec to your computer and use it in GitHub Desktop.
Angular do POST
$http.post('url', data, config)
.success(function (data, status, headers, config) {
if (data) {
console.log(data);
}
})
.error(function (data, status, header, config) {
console.log(data.errorMsg);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment