0

I've searched all over for this because alot of people seem to be getting this error. I know why i'm getting it - but I can't figure out how to fix it.

I'm using the Zoopla Property API - http://developer.zoopla.com/docs/read/Property_listings

The callback is jsonp=JSON_CALLBACK which returns the API in JSONP format. But the error is encountered because Angular changes the JSON_CALLBACK to angular.callbacks._0

And the API then completely ignores the callback function name and returns JSON instead because it doesn't like the dot notation.

Is there any way round this error?

2
  • can you post your relevant code? Commented Apr 3, 2016 at 16:01
  • propertyApp.controller('homeController', ['$scope', '$resource', function($scope, $resource){ $scope.propertyAPI = $resource("linktoAPI&jsonp=JSON_CALLBACK", {callback: "JSON_CALLBACK"}, {get: { method : "JSONP"}}); $scope.propertyResult = $scope.propertyAPI.get({page_size : 10}); console.log($scope.propertyResult); }]); Commented Apr 3, 2016 at 16:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.