Skip to content

Instantly share code, notes, and snippets.

@svisamsetty
Created November 20, 2013 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svisamsetty/7563348 to your computer and use it in GitHub Desktop.
Save svisamsetty/7563348 to your computer and use it in GitHub Desktop.
$http.get('/users_admin/list_users.json').success(function(data) {
if(data.status == true) {
$scope.users_list = data.users;
}
else {
$scope.error_messages = data.error_messages;
// add flag to show error messages in the view.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment