Created
April 12, 2018 22:24
-
-
Save jbarros35/daab325b547e1f25dc27d3f0b53efdec to your computer and use it in GitHub Desktop.
Angular do POST
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.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