angular-dropzone
angular-dropzone copied to clipboard
Avoid memory leaks by calling destroy
When the scope is destroyed, destroy (remove) the dropzone instance to avoid memory leaks.
scope.$on('$destroy', function () {
dropzone.destroy();
});