Instead of passing parameters when changing pages like this:
$state.go('index.my_route', {my_param : value});
Is it possible to pass the parameter in the URL string while still using $state.go
? For example:
$state.go('index.my_route?my_param=' + value);
> "http://localhost/#/index/my_route?my_param=123"
In my controller function, I would like to access this parameter using $stateParams:
function myCtrl($stateParams) {
console.log($stateParams.my_param);
}