#AngularJS, #JS: Clear search query parameter from url #github #gist
// You can delete a specific query parameter by using:
delete $location.$$search.nameOfParameter;
// Or you can clear all the query params by setting search to an empty object:
$location.$$search = {};
// From http://stackoverflow.com/questions/17376416/angularjs-how-to-clear-query-parameters-in-the-url