I know I can pass parameters when changing pages like this:
$state.go('index.my_route', {my_param : value});
then:
function myCtrl($stateParams) {
console.log($stateParams.my_param);
}
But I need this parameter at URL then I would like to know how can I pass it with the URL string and still calling $state.go. Something like this:
$state.go('index.my_route?my_param=' + value);
> "http://localhost/#/index/my_route?my_param=123"