Skip to content

Instantly share code, notes, and snippets.

@asterick
Created February 26, 2013 19:39
Show Gist options
  • Save asterick/5041436 to your computer and use it in GitHub Desktop.
Save asterick/5041436 to your computer and use it in GitHub Desktop.
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