I am trying to achieve the drag and drop feature using the Angularjs. I need to create a copy of the element every time when the draggable
element is dragged and dropped on to the droppable
element. I am quite new to Angularjs but I was able to achieve this same thing using jQuery but I am trying to do the same in Angularjs. I have written the directive which will make this thing possible. But for some reason, the DROP
function handle drop
is never getting called. Although dragstart
and dragend
are working fine.
I have posted my code here: jqfiddle with the code I have so far including the jQuery which is working
If someone can help me how to achieve this then it would be great. Every time I drop the rectangle
box in the droppable field then it should create a new copy of it.
I trying to follow this page and achieve it: https://parkji.co.uk/2013/08/11/native-drag-and-drop-in-angularjs.html
If there are any better way to achieve this then I am open for that as well.