Angularjs $http Unexpected Token Colon
I'm trying to do a get request to a remote website but I get: 'Uncaught SyntaxError: Unexpected token :' Does any one have a idea what im doing wrong? This is the code I have var
Solution 1:
It doesn't look like the colorfyit api supports jsonp. The response from http://www.colorfyit.com/api/swatches/list.json?url=facebook.com&callback=json_callback is in JSON format, it's not wrapped in a function call as it would be if it was a JSONP response.
Post a Comment for "Angularjs $http Unexpected Token Colon"