I've got some state routing like:
.state. ('home', { ... })
.state('home.company', {
url: 'company/{ID:int}',
abstract: true,
template: '<ui-view/>'
})
.state('home.company.list', {
url: '/list',
views: { ... }
I want to use something like this:
ui-sref="home.company({ ID: id }).list"
to navigate to the state. But it doesn't work. I also tried to do following:
ui-sref="home.company.list({ ID: id })"
This also doesn't work. Any tips how to get it working?
P.S. It would work if I have used:
$state.go(route, { ID: id });
Where state would be 'home.company.list'. But it isn't what I currently want to achieve.
P.P.S Here is the error I get:
Error: Invalid state ref 'home.company({ ID: id }).list>