{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/1031","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1031/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1031/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1031/events","html_url":"https://github.com/angular-ui/ui-router/issues/1031","id":31725005,"number":1031,"title":"Refer to current state from ui-sref (e.g. for setting url parameters).","user":{"login":"olegskl","id":298275,"avatar_url":"https://avatars.githubusercontent.com/u/298275?v=3","gravatar_id":"","url":"https://api.github.com/users/olegskl","html_url":"https://github.com/olegskl","followers_url":"https://api.github.com/users/olegskl/followers","following_url":"https://api.github.com/users/olegskl/following{/other_user}","gists_url":"https://api.github.com/users/olegskl/gists{/gist_id}","starred_url":"https://api.github.com/users/olegskl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegskl/subscriptions","organizations_url":"https://api.github.com/users/olegskl/orgs","repos_url":"https://api.github.com/users/olegskl/repos","events_url":"https://api.github.com/users/olegskl/events{/privacy}","received_events_url":"https://api.github.com/users/olegskl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nateabele","id":18288,"avatar_url":"https://avatars.githubusercontent.com/u/18288?v=3","gravatar_id":"","url":"https://api.github.com/users/nateabele","html_url":"https://github.com/nateabele","followers_url":"https://api.github.com/users/nateabele/followers","following_url":"https://api.github.com/users/nateabele/following{/other_user}","gists_url":"https://api.github.com/users/nateabele/gists{/gist_id}","starred_url":"https://api.github.com/users/nateabele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nateabele/subscriptions","organizations_url":"https://api.github.com/users/nateabele/orgs","repos_url":"https://api.github.com/users/nateabele/repos","events_url":"https://api.github.com/users/nateabele/events{/privacy}","received_events_url":"https://api.github.com/users/nateabele/received_events","type":"User","site_admin":false},"milestone":null,"comments":31,"created_at":"2014-04-17T13:10:31Z","updated_at":"2016-01-22T06:43:54Z","closed_at":null,"body":"The [documentation](http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.directive:ui-sref) 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.\r\n\r\nOf 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.\r\n\r\nI've [ventured a related question on stackoverflow](http://stackoverflow.com/questions/23106493/change-a-url-parameter-in-the-current-state-from-ui-sref-in-angular-ui-router) in case somebody had figured it out already. But it appears not to be the case.\r\n\r\nDoes this functionality exist already (maybe I just missed/misused it)? If not, should it be implemented?"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/comments/173825695","html_url":"https://github.com/angular-ui/ui-router/issues/1031#issuecomment-173825695","issue_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1031","id":173825695,"user":{"login":"vincentngthu","id":6469269,"avatar_url":"https://avatars.githubusercontent.com/u/6469269?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentngthu","html_url":"https://github.com/vincentngthu","followers_url":"https://api.github.com/users/vincentngthu/followers","following_url":"https://api.github.com/users/vincentngthu/following{/other_user}","gists_url":"https://api.github.com/users/vincentngthu/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentngthu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentngthu/subscriptions","organizations_url":"https://api.github.com/users/vincentngthu/orgs","repos_url":"https://api.github.com/users/vincentngthu/repos","events_url":"https://api.github.com/users/vincentngthu/events{/privacy}","received_events_url":"https://api.github.com/users/vincentngthu/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T06:43:54Z","updated_at":"2016-01-22T06:43:54Z","body":"+1"}}