{"action":"created","issue":{"url":"https://api.github.com/repos/codef0rmer/angular-dragdrop/issues/151","labels_url":"https://api.github.com/repos/codef0rmer/angular-dragdrop/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/codef0rmer/angular-dragdrop/issues/151/comments","events_url":"https://api.github.com/repos/codef0rmer/angular-dragdrop/issues/151/events","html_url":"https://github.com/codef0rmer/angular-dragdrop/issues/151","id":54463118,"number":151,"title":"Get dropped item on callback","user":{"login":"lukasstankiewicz","id":5112785,"avatar_url":"https://avatars.githubusercontent.com/u/5112785?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasstankiewicz","html_url":"https://github.com/lukasstankiewicz","followers_url":"https://api.github.com/users/lukasstankiewicz/followers","following_url":"https://api.github.com/users/lukasstankiewicz/following{/other_user}","gists_url":"https://api.github.com/users/lukasstankiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasstankiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasstankiewicz/subscriptions","organizations_url":"https://api.github.com/users/lukasstankiewicz/orgs","repos_url":"https://api.github.com/users/lukasstankiewicz/repos","events_url":"https://api.github.com/users/lukasstankiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/lukasstankiewicz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-15T15:38:37Z","updated_at":"2015-01-17T07:20:55Z","closed_at":"2015-01-17T07:20:55Z","body":"Hello,\r\n\r\nis it possible to get item dropped in droppable within onDrop callback? I am looking thorugh code and cant find option like this.\r\n \r\n```\r\n jqyoui-droppable=\"{onDrop: 'onDrop'}\"  \r\n...\r\n$scope.onDrop = function(event, ui, itemDroped) {}\r\n```\r\n\r\nitemDroped is object linked to/copied form draggable ng-model\r\n"},"comment":{"url":"https://api.github.com/repos/codef0rmer/angular-dragdrop/issues/comments/70357964","html_url":"https://github.com/codef0rmer/angular-dragdrop/issues/151#issuecomment-70357964","issue_url":"https://api.github.com/repos/codef0rmer/angular-dragdrop/issues/151","id":70357964,"user":{"login":"codef0rmer","id":167227,"avatar_url":"https://avatars.githubusercontent.com/u/167227?v=3","gravatar_id":"","url":"https://api.github.com/users/codef0rmer","html_url":"https://github.com/codef0rmer","followers_url":"https://api.github.com/users/codef0rmer/followers","following_url":"https://api.github.com/users/codef0rmer/following{/other_user}","gists_url":"https://api.github.com/users/codef0rmer/gists{/gist_id}","starred_url":"https://api.github.com/users/codef0rmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codef0rmer/subscriptions","organizations_url":"https://api.github.com/users/codef0rmer/orgs","repos_url":"https://api.github.com/users/codef0rmer/repos","events_url":"https://api.github.com/users/codef0rmer/events{/privacy}","received_events_url":"https://api.github.com/users/codef0rmer/received_events","type":"User","site_admin":false},"created_at":"2015-01-17T07:20:55Z","updated_at":"2015-01-17T07:20:55Z","body":"@lukasstankiewicz: Well, you can do it but little differently. I assume you need to access the dragged item which is being dropped in `onDrop` callback. There are two ways to do it:\r\n\r\n1. Store drag item on the scope in `onStart` and access it in `onDrop` as [shown here](https://github.com/codef0rmer/angular-dragdrop/blob/master/demo/dnd-frameworks.html#L39).\r\n2. You can access the dragged element (DOM) in `onDrop` callback using `ui.draggable`. Then wrap it in `angular.element` to grab it's scope as, `angular.element(ui.draggable).scope()`.\r\n\r\nHope this helps."}}