title: AngularJS passing data to $http.get request
body: <p>I have a function which does a http POST request. The code is specified below. This works fine.</p>
  
  <pre><code> $http({
     url: user.update_path, 
     method: "POST",
     data: {user_id: user.id, draft: true}
   });
  </code></pre>
  
  <p>I have another function for http GET and I want to send data to that request. But I don't have that option in get.</p>
  
  <pre><code> $http({
     url: user.details_path, 
     method: "GET",
     data: {user_id: user.id}
   });
  </code></pre>
  
  <p>The syntax for <code>http.get</code> is</p>
  
  <p><strong>get(url, config)</strong></p>