{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/2520","repository_url":"https://api.github.com/repos/angular-ui/ui-router","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2520/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2520/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2520/events","html_url":"https://github.com/angular-ui/ui-router/issues/2520","id":131263451,"number":2520,"title":"Parent state not resolving when transitioning from child","user":{"login":"jpodpro","id":15255854,"avatar_url":"https://avatars.githubusercontent.com/u/15255854?v=3","gravatar_id":"","url":"https://api.github.com/users/jpodpro","html_url":"https://github.com/jpodpro","followers_url":"https://api.github.com/users/jpodpro/followers","following_url":"https://api.github.com/users/jpodpro/following{/other_user}","gists_url":"https://api.github.com/users/jpodpro/gists{/gist_id}","starred_url":"https://api.github.com/users/jpodpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpodpro/subscriptions","organizations_url":"https://api.github.com/users/jpodpro/orgs","repos_url":"https://api.github.com/users/jpodpro/repos","events_url":"https://api.github.com/users/jpodpro/events{/privacy}","received_events_url":"https://api.github.com/users/jpodpro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/ui-router/labels/PlunkrPlease","name":"PlunkrPlease","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-04T07:03:29Z","updated_at":"2016-02-07T00:39:45Z","closed_at":null,"body":"i have a resolve in my parent state and a resolve in each child state. the resolves all fire properly until i transition from a child state to the parent state. in this situation the resolve is not run and the data i expect from the resolve is null. \r\n\r\ni couldn't figure out if this is expected behavior as nothing in the documentation seems to imply this behavior. if this is expected behavior, am i required to abandon the resolve system in order to get the data i need? hooks are an option but it seems strange to have to create a hook for this one special case."},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/comments/180893673","html_url":"https://github.com/angular-ui/ui-router/issues/2520#issuecomment-180893673","issue_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2520","id":180893673,"user":{"login":"jpodpro","id":15255854,"avatar_url":"https://avatars.githubusercontent.com/u/15255854?v=3","gravatar_id":"","url":"https://api.github.com/users/jpodpro","html_url":"https://github.com/jpodpro","followers_url":"https://api.github.com/users/jpodpro/followers","following_url":"https://api.github.com/users/jpodpro/following{/other_user}","gists_url":"https://api.github.com/users/jpodpro/gists{/gist_id}","starred_url":"https://api.github.com/users/jpodpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpodpro/subscriptions","organizations_url":"https://api.github.com/users/jpodpro/orgs","repos_url":"https://api.github.com/users/jpodpro/repos","events_url":"https://api.github.com/users/jpodpro/events{/privacy}","received_events_url":"https://api.github.com/users/jpodpro/received_events","type":"User","site_admin":false},"created_at":"2016-02-07T00:39:45Z","updated_at":"2016-02-07T00:39:45Z","body":"here is a plunker showing a simplified scenario. ideally, any of the menu items would trigger their resolve only when selected. currently 'activity' is resolved in one of two scenarios: when selecting the sub-menu item 'plays' or when transitioning to 'activity' from 'plays'. selecting 'plays' results in two resolves and two content requests - not ideal with real data. another option would be to abandon resolves and simply request the data in the controller as it is always loaded only once. i thought using resolve was a prettier solution but it doesn't seem trivial to force resolving to happen exactly when i want it to.\r\n\r\nre: ui-sref - i'm using a data-driven menu which is sortable and ui-sref can't take a binding that changes so i was forced to use ``ng-href=\"{{ $state.href( menuItem.item.state ) }} `` instead of ``ui-sref={{ menuItem.item.state }}``\r\n\r\nhttps://plnkr.co/edit/jGnv6ZXSb1FKhSMnPPyI?p=preview\r\n"}}