I am having a controller like this :
ListNewsCtrl.$inject = ['$http', '$scope', 'datacontext'];
function ListNewsCtrl( $http, $scope, datacontext) {
$scope.realTimeData = [];
var url ="https://erikberg.com/mlb/standings.jsonformat=json&jsoncallback=?";
$http.jsonp(url)
.success(function (data) {
$scope.realTimeData = data;
console.log($scope.realTimeData)
});
};
When I run it. I get Uncaught SyntaxError: Unexpected token : error. When I click on it I see the data, the data are printed but its indicating that I have a Uncaught SyntaxError: