Skyscreepa
Skyscreepa

Reputation: 21

Call function from AngularJs Directive for Dropzone.js

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!

Upvotes: 1

Views: 3051

Answers (1)

Skyscreepa
Skyscreepa

Reputation: 21

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();

Upvotes: 1

Related Questions