{"action":"opened","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/5864","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/5864/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/5864/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/5864/events","html_url":"https://github.com/driftyco/ionic/issues/5864","id":141498418,"number":5864,"title":"feat: Need to detect menu close event","user":{"login":"ErkoKnoll","id":9930079,"avatar_url":"https://avatars.githubusercontent.com/u/9930079?v=3","gravatar_id":"","url":"https://api.github.com/users/ErkoKnoll","html_url":"https://github.com/ErkoKnoll","followers_url":"https://api.github.com/users/ErkoKnoll/followers","following_url":"https://api.github.com/users/ErkoKnoll/following{/other_user}","gists_url":"https://api.github.com/users/ErkoKnoll/gists{/gist_id}","starred_url":"https://api.github.com/users/ErkoKnoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErkoKnoll/subscriptions","organizations_url":"https://api.github.com/users/ErkoKnoll/orgs","repos_url":"https://api.github.com/users/ErkoKnoll/repos","events_url":"https://api.github.com/users/ErkoKnoll/events{/privacy}","received_events_url":"https://api.github.com/users/ErkoKnoll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-17T06:58:56Z","updated_at":"2016-03-17T06:58:56Z","closed_at":null,"body":"**Type**: <span ionic-type>feat</span>\n\n**Ionic Version**: <span ionic-version>2.x</span>\n\n**Platform**: <span ionic-platform>all</span>  \n\n<span ionic-description>I haven't found a way to detect when menu closes. I checked MenuController and Menu classes but didn't notice any public event that is fired when menu is closed. Would be nice if there was an event for that.\nCurrently I'm doing it the following way and it is rather dirty:\nlet previouslyOpened = false;\n            setInterval(() => {\n                let opened = menuController.isOpen();\n                if (previouslyOpened && !opened) {\n                    //Closed\n                }\n                previouslyOpened = opened;\n            }, 500);</span>\n\n<span is-issue-template></span>\n"}}