Why is this header code not working? If I do not put the header, only the JSON, the table works. But if I am going to set it on the site header to get the JSON, it doesn't work. Is this a working query? Do I have a missing delimiter?
var myTable=angular.module('myTable',[]);
myTable.controller('tableCtrl',function($scope,$http){
$http("http://staging.api.sample.com/activity.json", {header: {Authorization: 'NkgjkdleLKSldksLKSd'}}) .success(function(response) {
debugger
$scope.members=response.events;
$scope.totals = response.paging;
});
});