Advertisement
Guest User

Angular ajax

a guest
Aug 27th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Angular ajax example.
  2.  
  3. var promise = $http.get('http://localhost:3000/api/users')
  4. .success(function(result) {
  5.     console.log(result);
  6. }).catch(function(error) {
  7. console.error(error);
  8. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement