Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jongunter opened this issue Feb 18, 2016 · 1 comment
Open

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

jongunter opened this issue Feb 18, 2016 · 1 comment

Comments

@jongunter
Copy link

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
Copy link

Luddinus commented Aug 3, 2016

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants