Guest User

Untitled

a guest
Oct 13th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. app.factory('events', ['$http', function($http) {
  2. return $http.get('https://s3.amazonaws.com/codecademy-content/courses/ltp4/events-api/events.json')
  3. .success(function(data) {
  4. return data;
  5. })
  6. .error(function(data) {
  7. return data;
  8. });
  9. }]);
Advertisement
Add Comment
Please, Sign In to add comment