$http.get is a shortcut method for $http({ method: 'GET' }), and expects the URL as the first parameter.
Solution:
$http({
method: 'JSONP',
url: url
}).then(function successCallback(response) {
// ok
}, function errorCallback(response) {
// ko
});
Comments
Post a Comment