Created
August 29, 2016 11:12
-
-
Save jadjoubran/53e427736077259b157affc33b3a646c to your computer and use it in GitHub Desktop.
Angular error interceptors
This file contains 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
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