How can I set the ajax return data type in angular? For instance I can set it easily in jquery if I want the response data to be html.
jquery,
$.ajax({
url: "script.php",
type: "GET",
dataType: "html"
});
angular,
$http({
method: "get",
url: "script.php",
responseType: "html" // does not work
}).then(function(response) {
$scope.form = response.data;
);
It always returns string or json but what about html or xml?