Is anyone used dropzone Js library with angular 2 or 4 before ? and if there is some useful examples or links thanks
There is an Angular 5+ wrapper for Dropzone that can be found here.
Maybe it's a bit late, after some research I found these info to make work dropzone 5.0.2 with Angular 5:
src/js/
(create the js
dir, if not already created)js/dropzone.js
in the list of scripts in .angular-cli.json
As described here, run the following command in cmd/shell, at the root of your angular project (where .angular-cli.json
is located):
npm install --save @types/dropzone
Now you are able to import dropzone in your typescript classes like this:
import * as dropzone from 'dropzone';
You may also integrate it as an Angular component (Angular 2+) like described it this article.
WARNING: I didn't test it, thus, maybe, something is missing or wrong. I finally used another library.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With