Skip to content

Instantly share code, notes, and snippets.

@gsans
Created November 21, 2014 00:46
Show Gist options
  • Save gsans/860a66a065efd82a420a to your computer and use it in GitHub Desktop.
Save gsans/860a66a065efd82a420a to your computer and use it in GitHub Desktop.
$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