The best way to do this ( example script ) is to use $http.jsonp .
var url = 'http://api.worldweatheronline.com/free/v1/weather.ashx'; return $http.jsonp(url, { params: { callback: 'JSON_CALLBACK', q: 'London', format:'json', num_of_days: 5, key: 'atf6ya6bbz3v5u5q8um82pev' } });
Note the JSON_CALLBACK query string parameter that I added. Behind the scenes, angular uses this to set up its callbacks for you. Without it, it will break.
source share