{"action":"created","issue":{"url":"https://api.github.com/repos/fragaria/angular-daterangepicker/issues/56","labels_url":"https://api.github.com/repos/fragaria/angular-daterangepicker/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/fragaria/angular-daterangepicker/issues/56/comments","events_url":"https://api.github.com/repos/fragaria/angular-daterangepicker/issues/56/events","html_url":"https://github.com/fragaria/angular-daterangepicker/issues/56","id":78925499,"number":56,"title":"need handle event in angular way","user":{"login":"belerweb","id":1193124,"avatar_url":"https://avatars.githubusercontent.com/u/1193124?v=3","gravatar_id":"","url":"https://api.github.com/users/belerweb","html_url":"https://github.com/belerweb","followers_url":"https://api.github.com/users/belerweb/followers","following_url":"https://api.github.com/users/belerweb/following{/other_user}","gists_url":"https://api.github.com/users/belerweb/gists{/gist_id}","starred_url":"https://api.github.com/users/belerweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belerweb/subscriptions","organizations_url":"https://api.github.com/users/belerweb/orgs","repos_url":"https://api.github.com/users/belerweb/repos","events_url":"https://api.github.com/users/belerweb/events{/privacy}","received_events_url":"https://api.github.com/users/belerweb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-21T10:07:38Z","updated_at":"2015-12-10T10:42:02Z","closed_at":"2015-06-07T15:50:19Z","body":"There are events(show.daterangepicker/hide.daterangepicker/cancel.daterangepicker) in daterangepicker. If we don't use angular, we can use code:\r\n``` javascript\r\n$('#daterange').on('cancel.daterangepicker', function(ev, picker) {\r\n  //do something, like clearing an input\r\n  $('#daterange').val('');\r\n});\r\n```\r\n\r\nBut we are using angular, we use should write code like $scope.$on('cancel.daterangepicker', ...).\r\n\r\nSo, please consider event hanlder integration."},"comment":{"url":"https://api.github.com/repos/fragaria/angular-daterangepicker/issues/comments/163574710","html_url":"https://github.com/fragaria/angular-daterangepicker/issues/56#issuecomment-163574710","issue_url":"https://api.github.com/repos/fragaria/angular-daterangepicker/issues/56","id":163574710,"user":{"login":"himanshugoyal5734","id":15415877,"avatar_url":"https://avatars.githubusercontent.com/u/15415877?v=3","gravatar_id":"","url":"https://api.github.com/users/himanshugoyal5734","html_url":"https://github.com/himanshugoyal5734","followers_url":"https://api.github.com/users/himanshugoyal5734/followers","following_url":"https://api.github.com/users/himanshugoyal5734/following{/other_user}","gists_url":"https://api.github.com/users/himanshugoyal5734/gists{/gist_id}","starred_url":"https://api.github.com/users/himanshugoyal5734/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/himanshugoyal5734/subscriptions","organizations_url":"https://api.github.com/users/himanshugoyal5734/orgs","repos_url":"https://api.github.com/users/himanshugoyal5734/repos","events_url":"https://api.github.com/users/himanshugoyal5734/events{/privacy}","received_events_url":"https://api.github.com/users/himanshugoyal5734/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T10:42:02Z","updated_at":"2015-12-10T10:42:02Z","body":"can you tell me fire an event on apply function in angular js????"}}