1

I'm trying to get Delicious count with their feed with angularJs. In my previous code, simple jquery works, but with angular I get error

No 'Access-Control-Allow-Origin' header is present on the requested resource.

This is due to newer libraries CORS

This is jquery fiddle: http://jsbin.com/iVufAHuf/1/edit

This is angular fiddle: http://jsbin.com/OQUsuDuC/1/edit

flurdy
  • 3,782
  • 29
  • 31
Tropicalista
  • 3,097
  • 12
  • 44
  • 72

1 Answers1

1

You need to use

$http.jsonp

with correct callback syntax in url params. See.

http://jsbin.com/EFeXuNap/2/edit

Mahbub
  • 3,108
  • 24
  • 29
  • I have tested with dataType: 'jsonp', and not worked. So there is a difference between $http.jsonp and dataType: 'jsonp'? However thanks for the answer. – Tropicalista Dec 03 '13 at 14:12
  • You had a little problem in Syntax. "success" is not a function passed in the config object, rather a prototype of the http which is shown here http://jsbin.com/iNadAmAb/1/edit – Mahbub Dec 04 '13 at 11:25