I have many card in which i have to put drag and drop. Now as matter of fact drag and drop is work perfect but how can i get the target and source of my block which is i am drag and drop.
The code looking something like this :
function TaskCtrl($scope, $http, dragulaService) {
$scope.many = ['The', 'possibilities', 'are', 'endless!'];
$scope.many2 = ['Explore', 'them'];
$scope.$on('another-bag.drag', function (e, el){
console.log('drag ' + $(el).html());
});
$scope.$on('another-bag.drop', function (e , el) {
console.log('drop ' + $(el).html() + ' in ' + $(e).html() );
});
});
I have many card in which i have to put drag and drop. Now as matter of fact drag and drop is work perfect but how can i get the target and source of my block which is i am drag and drop.
The code looking something like this :
function TaskCtrl($scope, $http, dragulaService) {
$scope.many = ['The', 'possibilities', 'are', 'endless!'];
$scope.many2 = ['Explore', 'them'];
});