Created
January 28, 2016 14:39
-
-
Save msomu/4d35b2d3bd73a73eac53 to your computer and use it in GitHub Desktop.
Angular HttpService
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
| // Simple GET request example: | |
| $http({ | |
| method: 'GET', | |
| url: '/someUrl' | |
| }).then(function successCallback(response) { | |
| // this callback will be called asynchronously | |
| // when the response is available | |
| }, function errorCallback(response) { | |
| // called asynchronously if an error occurs | |
| // or server returns response with an error status. | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment