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