Created
April 22, 2013 23:30
-
-
Save mgonto/5439481 to your computer and use it in GitHub Desktop.
Error handling Restangular
This file contains hidden or 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
| 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