{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3694","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3694/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3694/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3694/events","html_url":"https://github.com/angular-ui/bootstrap/issues/3694","id":78437176,"number":3694,"title":"$modal cant be dismissed if state [ui-router] is changed ","user":{"login":"slepkaviba","id":510196,"avatar_url":"https://avatars.githubusercontent.com/u/510196?v=3","gravatar_id":"","url":"https://api.github.com/users/slepkaviba","html_url":"https://github.com/slepkaviba","followers_url":"https://api.github.com/users/slepkaviba/followers","following_url":"https://api.github.com/users/slepkaviba/following{/other_user}","gists_url":"https://api.github.com/users/slepkaviba/gists{/gist_id}","starred_url":"https://api.github.com/users/slepkaviba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slepkaviba/subscriptions","organizations_url":"https://api.github.com/users/slepkaviba/orgs","repos_url":"https://api.github.com/users/slepkaviba/repos","events_url":"https://api.github.com/users/slepkaviba/events{/privacy}","received_events_url":"https://api.github.com/users/slepkaviba/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/component:%20modal","name":"component: modal","color":"ffffff"},{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/type:%20bug","name":"type: bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular-ui/bootstrap/milestones/23","html_url":"https://github.com/angular-ui/bootstrap/milestones/0.13.3%20(Fixes)","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/milestones/23/labels","id":1232579,"number":23,"title":"0.13.3 (Fixes)","description":"Minor bug fixes & features","creator":{"login":"wesleycho","id":1703387,"avatar_url":"https://avatars.githubusercontent.com/u/1703387?v=3","gravatar_id":"","url":"https://api.github.com/users/wesleycho","html_url":"https://github.com/wesleycho","followers_url":"https://api.github.com/users/wesleycho/followers","following_url":"https://api.github.com/users/wesleycho/following{/other_user}","gists_url":"https://api.github.com/users/wesleycho/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleycho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleycho/subscriptions","organizations_url":"https://api.github.com/users/wesleycho/orgs","repos_url":"https://api.github.com/users/wesleycho/repos","events_url":"https://api.github.com/users/wesleycho/events{/privacy}","received_events_url":"https://api.github.com/users/wesleycho/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":35,"state":"open","created_at":"2015-07-29T23:58:04Z","updated_at":"2015-08-05T00:08:50Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2015-05-20T08:52:26Z","updated_at":"2015-08-05T01:55:23Z","closed_at":"2015-08-04T18:40:22Z","body":"Hi,\r\n\r\nUsing ui-router and $modal brings confustion when $modal inherits scope from current state controller's scope. If state is changed, modal's methods are gone, and its impossible to close it (I tried using $stateChangeStart and $destroy events, but in both - its already too late and dismiss and close have no effect).\r\n\r\nOne solution was not using inherited scopes but in case they are needed - modal stays open forever.\r\n\r\n\r\nBr"},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/127817215","html_url":"https://github.com/angular-ui/bootstrap/issues/3694#issuecomment-127817215","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3694","id":127817215,"user":{"login":"moneytree-doug","id":7564255,"avatar_url":"https://avatars.githubusercontent.com/u/7564255?v=3","gravatar_id":"","url":"https://api.github.com/users/moneytree-doug","html_url":"https://github.com/moneytree-doug","followers_url":"https://api.github.com/users/moneytree-doug/followers","following_url":"https://api.github.com/users/moneytree-doug/following{/other_user}","gists_url":"https://api.github.com/users/moneytree-doug/gists{/gist_id}","starred_url":"https://api.github.com/users/moneytree-doug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moneytree-doug/subscriptions","organizations_url":"https://api.github.com/users/moneytree-doug/orgs","repos_url":"https://api.github.com/users/moneytree-doug/repos","events_url":"https://api.github.com/users/moneytree-doug/events{/privacy}","received_events_url":"https://api.github.com/users/moneytree-doug/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T01:55:23Z","updated_at":"2015-08-05T01:55:23Z","body":"@wesleycho Correct me if I am misunderstanding, but that PR looks like it will dismiss the modal if the route changes. That would be a new unexpected behaviour to me, because it would previously not dismiss if the navigation changes."}}