title: angular $http vs jquery $ajax - dataType for angular?
body: <p>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.</p>
  
  <p>jquery,</p>
  
  <pre><code>$.ajax({
    url: "script.php",
    type: "GET",
    dataType: "html"
  });
  </code></pre>
  
  <p>angular,</p>
  
  <pre><code>$http({
    method: "get",
    url: "script.php",
    responseType: "html" // does not work
  }).then(function(response) {
    $scope.form = response.data;
  );
  </code></pre>
  
  <p>It always returns string or json but what about html or xml?</p>