{"action":"created","issue":{"url":"https://api.github.com/repos/LukaszWatroba/v-modal/issues/5","labels_url":"https://api.github.com/repos/LukaszWatroba/v-modal/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/LukaszWatroba/v-modal/issues/5/comments","events_url":"https://api.github.com/repos/LukaszWatroba/v-modal/issues/5/events","html_url":"https://github.com/LukaszWatroba/v-modal/issues/5","id":90890946,"number":5,"title":"Should we listen to `$stateChangeStart` or `$routeChangeStart` to close modal automatically?","user":{"login":"Treri","id":2631733,"avatar_url":"https://avatars.githubusercontent.com/u/2631733?v=3","gravatar_id":"","url":"https://api.github.com/users/Treri","html_url":"https://github.com/Treri","followers_url":"https://api.github.com/users/Treri/followers","following_url":"https://api.github.com/users/Treri/following{/other_user}","gists_url":"https://api.github.com/users/Treri/gists{/gist_id}","starred_url":"https://api.github.com/users/Treri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treri/subscriptions","organizations_url":"https://api.github.com/users/Treri/orgs","repos_url":"https://api.github.com/users/Treri/repos","events_url":"https://api.github.com/users/Treri/events{/privacy}","received_events_url":"https://api.github.com/users/Treri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-25T08:05:20Z","updated_at":"2015-06-26T09:38:19Z","closed_at":null,"body":"If the modal is open, and user click back or forward button, the page is changed. but the modal is still open.\r\nIn this condition, maybe some methods or functions pointed to the page controller is not available no longer.\r\nShould we listen to `$stateChangeStart` or `$routeChangeStart` to close modal automatically?"},"comment":{"url":"https://api.github.com/repos/LukaszWatroba/v-modal/issues/comments/115613046","html_url":"https://github.com/LukaszWatroba/v-modal/issues/5#issuecomment-115613046","issue_url":"https://api.github.com/repos/LukaszWatroba/v-modal/issues/5","id":115613046,"user":{"login":"Treri","id":2631733,"avatar_url":"https://avatars.githubusercontent.com/u/2631733?v=3","gravatar_id":"","url":"https://api.github.com/users/Treri","html_url":"https://github.com/Treri","followers_url":"https://api.github.com/users/Treri/followers","following_url":"https://api.github.com/users/Treri/following{/other_user}","gists_url":"https://api.github.com/users/Treri/gists{/gist_id}","starred_url":"https://api.github.com/users/Treri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treri/subscriptions","organizations_url":"https://api.github.com/users/Treri/orgs","repos_url":"https://api.github.com/users/Treri/repos","events_url":"https://api.github.com/users/Treri/events{/privacy}","received_events_url":"https://api.github.com/users/Treri/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T09:38:19Z","updated_at":"2015-06-26T09:38:19Z","body":"Thanks~\r\n\r\nMy meaning is should v-modal do this or user **themselves** who use v-moal do this."}}