Closed
Description
The documentation explicitly states "You can also use relative state paths within ui-sref, just like the relative paths passed to $state.go()." However, even though we are able to refer to the current state with $state.go('.', {foo: 'bar'})
it doesn't seem to work when using ui-sref
directive. I naively tried ui-sref=".({foo:'bar'})"
which failed.
Of course it is possible to wire up ng-click
and $state.go
, but that leaves us with href-less anchors, which is not very useful from the user perspective.
I've ventured a related question on stackoverflow in case somebody had figured it out already. But it appears not to be the case.
Does this functionality exist already (maybe I just missed/misused it)? If not, should it be implemented?