Skip to content

Instantly share code, notes, and snippets.

@jadjoubran
Created August 29, 2016 11:12
Show Gist options
  • Save jadjoubran/53e427736077259b157affc33b3a646c to your computer and use it in GitHub Desktop.
Save jadjoubran/53e427736077259b157affc33b3a646c to your computer and use it in GitHub Desktop.
Angular error interceptors
API.all('products').post({title, price}).then( (response) => {
var user = response.data.user;
}, (response) => {
//response.status
//response.data
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment