I have a couple of routes/states defined in my application. Consider the standard use case of list view and single view. For my single view, I pass the id as a URL parameter. I want to pass some more data, but not as URL parameters. Can this be done? I use $state.go
for transitioning to states.
Edit:
$stateProvider
.state('list', {
url: '/list',
...
})
.state('single', {
url: '/single/:id',
...
});
I get the id
in the $stateParams
in the respective controller, from the URL. But I want to send more dynamic data to this route, without sending it through the URL. How would I do it?