sandbochs / angular-dropzone

AngularJS directive for Dropzone.js
MIT License
43 stars 25 forks source link

Need a $scope.$apply() after event handlers fire #14

Open jongunter opened 8 years ago

jongunter commented 8 years ago

Since dropzone.js and its events are "outside of" angular, I've found it's sometimes necessary to put a $scope.$apply() at the end of the dropzone event handler callbacks (such as success and error), to make make everything work properly (a common example is calling toasts or other notifications when an upload fails--often these need a digest loop to fire before they show up in the DOM).

Would it be a possibility to integrate this functionality into this module? The ideal behavior would be

  1. Dropzone event fires
  2. The specified event handler is called
  3. angular-dropzone calls a $scope.$apply()
Luddinus commented 8 years ago

+1