0
angular.module('footApplication.services', [])
    .factory('AllBet', function ($resource) { 
        return $resource('http://api.football-data.org/v1/soccerseasons/1/fixtures');  
    });

.controller("GetAllBet",function($scope,$http){
    $http.get("https://edg.epa.gov/data.json").success(function(data){
        $scope.teams=data.data;
        console.log($scope.teams.conformsTo);
    });    
});
gtlambert
  • 11,711
  • 2
  • 30
  • 48
  • The site is not allowing you to do this, look at the Ajax examples @ api.football-data.org, you are required to provide a X-Auth-Token header – Alex K. Feb 17 '16 at 11:19
  • 1
    Go and look at the hundreds of other questions, with answers for this exact issue. – M21B8 Feb 17 '16 at 11:21

1 Answers1

0

You need to register to allow CORS:

enter image description here

karaxuna
  • 26,752
  • 13
  • 82
  • 117