Input:
var someDynamicParam = 9812894732432;
$location.search('myParams', someDynamicParam).path('/request');
Output:
http://127.0.0.1/request?myParams=9812894732432
Input:
var someDynamicParam = 9812894732432;
$location.search('myParams', someDynamicParam).path('/request');
Output:
http://127.0.0.1/request?myParams=9812894732432