title: How serialize objects with angularjs
body: <p>How can I serialize an object without using the <code>$.param</code> jquery?</p>
  
  <p>I want the object below:</p>
  
  <pre><code>var user = {username: 'ronald.araujo', password: '123456',};
  </code></pre>
  
  <p>to have the following output:</p>
  
  <pre><code>username=ronald.araujo&amp;password=123456
  </code></pre>
  
  <p>Any suggestions? Remembering that I would do this using Angularjs or pure Javascript.</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>I am using the verb "save" ($resource) the angularjs. How could I set the header "application / x-www-form-urlencoded" and serialize?</p>