Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
functon onReturn(resp) {
if (resp.status === 200) {
// SUCCESS!
} else {
// BOOO
}
}
$http(...).then(onReturn, onReturn);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment