title: How to read the full query string in angularjs from url?
body: <p>I want to use <code>angularjs</code> to read the full query string: </p>
  
  <p><a href="http://localhost/test#/?param1=abc&amp;param2=def" rel="nofollow">http://localhost/test#/?param1=abc&amp;param2=def</a></p>
  
  <p>I know that <code>var query = $location.search();</code> would give my an object containing each param as key-value pair.</p>
  
  <p>But I want to extract the full string <code>param1=abc&amp;param2=def</code>, and use this param elsewhere. Without having to know what parameters are inside the string.</p>
  
  <p>Is that possible?</p>