Skip to content

Instantly share code, notes, and snippets.

@mgonto
Created April 22, 2013 23:30
Show Gist options
  • Select an option

  • Save mgonto/5439481 to your computer and use it in GitHub Desktop.

Select an option

Save mgonto/5439481 to your computer and use it in GitHub Desktop.
Error handling Restangular
Restangular.all("accounts").getList().then(function(list) {
console.log("Success");
}, function(err) {
var response = err[0];
console.log(response.status)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment