Okay, iI tried several attempts and nothing is working
Checked the following answers
questions/26262235/jsonp-returning-uncaught-syntaxerror-unexpected-token-angularjs-routingnu
questions/16344933/angularjs-jsonp-not-working/16352746#16352746
questions/19269153/jsonp-request-in-angularjs-doesnt-work-like-in-jquery
questions/19669044/angularjs-getting-syntax-error-in-returned-json-from-http-jsonp
And non of them solved my problem.
I would like to use Giant Bombs API: http://www.giantbomb.com/api/
Yes i took a look at the forum posts nothing works.
$http({
method: 'JSONP',
url: 'http://www.giantbomb.com/api/game/3030-4725/',
params: {
api_key: $rootScope.api_key,
format: 'jsonp',
callback: 'JSON_CALLBACK'
}
}).then(function (data) {
$scope.data = data;
console.log($scope.data)
});
Error
Uncaught SyntaxError: Unexpected token :
Could someone give me a hint?
Because its really frustrating, I even wrapped the data with JSON_CALLBACK() same result