{"action":"opened","issue":{"url":"https://api.github.com/repos/luckylooke/dragular/issues/99","repository_url":"https://api.github.com/repos/luckylooke/dragular","labels_url":"https://api.github.com/repos/luckylooke/dragular/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/luckylooke/dragular/issues/99/comments","events_url":"https://api.github.com/repos/luckylooke/dragular/issues/99/events","html_url":"https://github.com/luckylooke/dragular/issues/99","id":167061700,"number":99,"title":"Catching event not working","user":{"login":"besingamkb","id":6380139,"avatar_url":"https://avatars.githubusercontent.com/u/6380139?v=3","gravatar_id":"","url":"https://api.github.com/users/besingamkb","html_url":"https://github.com/besingamkb","followers_url":"https://api.github.com/users/besingamkb/followers","following_url":"https://api.github.com/users/besingamkb/following{/other_user}","gists_url":"https://api.github.com/users/besingamkb/gists{/gist_id}","starred_url":"https://api.github.com/users/besingamkb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/besingamkb/subscriptions","organizations_url":"https://api.github.com/users/besingamkb/orgs","repos_url":"https://api.github.com/users/besingamkb/repos","events_url":"https://api.github.com/users/besingamkb/events{/privacy}","received_events_url":"https://api.github.com/users/besingamkb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-22T14:46:57Z","updated_at":"2016-07-22T14:46:57Z","closed_at":null,"body":"Hi. I am trying to use dragular for drag and drop for my app using laravel-angular-material-starter.\r\n\r\nThe drag and drop is working as expected but I can't cacth any event then performing a drag and drop.\r\n\r\nhere what my code.\r\n\r\ncontroller:\r\n```javascript\r\nclass ProjectsmilestonesController {\r\n    constructor(API, $auth, $state, $element, dragularService, $scope) {\r\n        'ngInject';\r\n        this.element = $element;\r\n        this.dragularService = dragularService;\r\n\r\n        this.$scope = $scope;\r\n\r\n        this.dragularService(angular.element('.dragular-milestones').children());\r\n\r\n   \r\n    }\r\n\r\n    $onInit() {\r\n\r\n\r\n        this.$scope.$on('dragularcloned', function() {\r\n            console.log(\"yow\");\r\n        });\r\n        this.$scope.$on('dragulardrag', function() {\r\n            console.log(\"yow\")\r\n        });\r\n    }\r\n}\r\n\r\nexport const ProjectsmilestonesComponent = {\r\n    templateUrl: './views/app/components/projectsmilestones/projectsmilestones.component.html',\r\n    controller: ProjectsmilestonesController,\r\n    controllerAs: 'vm',\r\n    bindings: {}\r\n}\r\n```\r\n\r\nhtml:\r\n```html\r\n<div class=\"project-milestone-main-container\">\r\n    <h1>Project's Milestones</h1>\r\n    <div class=\"pivot-wrapper\">\r\n        <div class=\"release-wrapper vertical\" >\r\n            <div class=\"box empty\">\r\n\r\n            </div>\r\n            <div class=\"box release-date\"  ng-repeat=\"(release, pm) in vm.project_milestones\">\r\n                <h5>W/C {{ vm.releaseDateFormat(release) }}</h5>\r\n            </div>\r\n        </div>\r\n        <div class=\"project-milestone-wrapper\">\r\n            <div class=\"project-milestone vertical\" ng-repeat=\"(project_key, project_data) in vm.all_projects\">\r\n                <div class=\"box project-name\">\r\n                    <h5>{{ project_data.project_name }}</h5>\r\n                </div>\r\n                <div class=\"dragular-milestones\" dragula=\"vm.dragula\" >\r\n                    <div class=\"box milestone\" ng-repeat=\"(release, pm) in vm.project_milestones\" >\r\n                        <div>{{release}}</div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        \r\n        <div class=\"clear-float\"></div>\r\n    </div>\r\n</div>\r\n```\r\n\r\nit is not showing any logs but also console.log is not showing\r\n\r\n\r\nhope someone can help me"}}
{"actor":{"display_login":"besingamkb"}}