Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. var hashTagMega = angular.module('hashTagMeta', []);
  2.  
  3. function mainController($scope, $http) {
  4.  
  5.  
  6. // when landing on the page, get all hashtags and show them
  7. $http.get('http://localhost/api/hashtags')
  8. .success(function(data) {
  9. //$scope.hashtags = data;
  10. console.log(data);
  11. })
  12. .error(function(data) {
  13. console.log('Error: ' + data);
  14. });
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement