title: Removing the querystring in AngularJS
body: <p>After reading and processing a query-string value from the URL, for example</p>
  
  <pre><code>http://myurl.com/#/?foo=baa
  </code></pre>
  
  <p>I can change the URL to</p>
  
  <pre><code>http://myurl.com/#/?foo=
  </code></pre>
  
  <p>by using</p>
  
  <pre><code>$location.search('myQueryStringParameter', '');
  </code></pre>
  
  <p>How do I get rid of the query-string altogether (without explicit redirects or server side action and so on) so that only</p>
  
  <pre><code>http://myurl.com/#/
  </code></pre>
  
  <p>remains in the browser? It should be fairly simple, but I can't find any reference.</p>