问题
I'm using angular-dragdrop.js (http://codef0rmer.github.io/angular-dragdrop/#/) It works nicely on Chrome but generates error at drop in IE. (drag an item from a list and drop it to another list) I have a requirement that the app needs to work in IE8. I saw the error in console, apparently it is complaining about $timeout in the angular drag drop code:
$timeout(function(){this.mutateDraggable(v,u,o,i,s,l,e);this.mutateDroppable(d,u,o,s,f,a);this.callEventCallback(d,u.onDrop,n,r)}.bind(this))
Has anyone make this work in IE8? is there a work around?
Edit: I have tried 4 different angular based drag and drop, looking for dragging from list to list. Unfortunately none worked with IE8. I had to go back and use the jquery drag and drop (please see the jquery ui sortable api documentation at the jquery web site)
here is the plunker http://plnkr.co/edit/3ABkpbF158NBfi23lbR9?p=preview this is not ideal, at least it is working for me, and I still get to keep the ngModels for keeping everything in sync with the rest of the app.
来源:https://stackoverflow.com/questions/19731415/angular-dragdrop-not-working-with-ie