Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var hashTagMega = angular.module('hashTagMeta', []);
- function mainController($scope, $http) {
- // when landing on the page, get all hashtags and show them
- $http.get('http://localhost/api/hashtags')
- .success(function(data) {
- //$scope.hashtags = data;
- console.log(data);
- })
- .error(function(data) {
- console.log('Error: ' + data);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement