I'm familiar with using jQuery's $.ajax
:
$.ajax({
url: //twitter endpoint,
method:"GET",
dataType:"jsonp",
success:function() {
//stuff
}
});
How can I specify the JSONP
datatype to an angular $http
service request?
so far I've tried this:
$http.get({
url: //twitter endpoint,
dataType: "jsonp",
success: function(){
//stuff
}
});
It hasnt worked though. Any ideas?