Call function from AngularJs Directive for Dropzone.js

青春壹個敷衍的年華 提交于 2020-01-05 12:32:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!