{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/1431","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1431/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1431/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1431/events","html_url":"https://github.com/angular-ui/ui-router/issues/1431","id":45162245,"number":1431,"title":"ui-sref-active not working correctly with abstract and child states","user":{"login":"blah238","id":538730,"avatar_url":"https://avatars.githubusercontent.com/u/538730?v=3","gravatar_id":"","url":"https://api.github.com/users/blah238","html_url":"https://github.com/blah238","followers_url":"https://api.github.com/users/blah238/followers","following_url":"https://api.github.com/users/blah238/following{/other_user}","gists_url":"https://api.github.com/users/blah238/gists{/gist_id}","starred_url":"https://api.github.com/users/blah238/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blah238/subscriptions","organizations_url":"https://api.github.com/users/blah238/orgs","repos_url":"https://api.github.com/users/blah238/repos","events_url":"https://api.github.com/users/blah238/events{/privacy}","received_events_url":"https://api.github.com/users/blah238/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":43,"created_at":"2014-10-07T20:31:28Z","updated_at":"2015-08-21T16:37:50Z","closed_at":null,"body":"http://plnkr.co/edit/c7OS1pwI5IjAAs5cEi5s?p=preview\r\n\r\nIn the example above, clicking the Administration nav element shows a view with two tabs, Users and Roles.\r\n\r\nThese correspond to the states `admin.users` and `admin.roles`, while `admin` is an abstract state whose URL is inherited by `admin.users`. This all works fine except when setting the active class using `ui-sref-active`.\r\n\r\nThere are two problems in this scenario:\r\n\r\n1. The Administration nav element is not made active when on the Roles tab\r\n2. When refreshing the page (be sure to pop out the Plunker preview) while on the Roles tab, no elements get the active class set\r\n\r\nI would like to avoid using `$state.includes` directly since `ui-sref-active` is supposed to work on child states since 0.2.11: https://github.com/angular-ui/ui-router/pull/927\r\n\r\nAm I doing something wrong or is this a bug?"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/comments/133485979","html_url":"https://github.com/angular-ui/ui-router/issues/1431#issuecomment-133485979","issue_url":"https://api.github.com/repos/angular-ui/ui-router/issues/1431","id":133485979,"user":{"login":"arkin-","id":1921583,"avatar_url":"https://avatars.githubusercontent.com/u/1921583?v=3","gravatar_id":"","url":"https://api.github.com/users/arkin-","html_url":"https://github.com/arkin-","followers_url":"https://api.github.com/users/arkin-/followers","following_url":"https://api.github.com/users/arkin-/following{/other_user}","gists_url":"https://api.github.com/users/arkin-/gists{/gist_id}","starred_url":"https://api.github.com/users/arkin-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkin-/subscriptions","organizations_url":"https://api.github.com/users/arkin-/orgs","repos_url":"https://api.github.com/users/arkin-/repos","events_url":"https://api.github.com/users/arkin-/events{/privacy}","received_events_url":"https://api.github.com/users/arkin-/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T16:37:50Z","updated_at":"2015-08-21T16:37:50Z","body":"You are all welcome ^ :)\r\n\r\nIf this is something the ui-router team want to implement, I'll happily submit a pull request."}}