Need a $scope.$apply() after event handlers fire
jongunter opened this issue · 1 comments
jongunter commented
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
- Dropzone event fires
- The specified event handler is called
- angular-dropzone calls a $scope.$apply()
Luddinus commented
+1