Created
November 21, 2014 00:46
-
-
Save gsans/860a66a065efd82a420a to your computer and use it in GitHub Desktop.
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
$http({method: 'GET', url: '/api/Users'}). | |
success(function(data, status, headers, config) { | |
// this callback will be called asynchronously | |
// when the response is available | |
$scope.users = data; | |
}). | |
error(function(data, status, headers, config) { | |
// 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