问题
I've this directive for the dropzone.js script: GitHub
This works fine but I want call the function processQueue() with a button. But I can't find how I can call this function!
回答1:
I found the answer by myself, juste add this line in the end of the directive :
scope.dropzone = dropzone;
And next you can call the function like that :
$scope.dropzone.processQueue();
来源:https://stackoverflow.com/questions/28614980/call-function-from-angularjs-directive-for-dropzone-js