1.0.2 • Published 6 years ago

a-dropzone v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

A-Dropzone

Angular lib wrapper for Dropzonejs

Install

npm install --save a-dropzone

Usage

  1. Import the module in your module.
  import { ADropzoneModule } from 'a-dropzone';


  @NgModule({
    ...
    imports:[ADropzoneModule]
    ...
  })
  1. Include the js and the css in your .angular-cli.json
  ...
  "styles": [
    "../node_modules/dropzone/dist/dropzone.css"
  ],
  "scripts": [
    "../node_modules/dropzone/dist/dropzone.js"
  ]
  ...
  1. Use it in the component
  <form class="dropzone" a-dropzone [options]="{url: yourBackendUrl}">
  </form>
  1. All catch all events easy, if you want to catch addedfile event just call the output:
  <form class="dropzone" a-dropzone (addedfile)="onAddedFile($event)" [options]="{url: yourBackendUrl}">
  </form>

You can set any dropzone option in Dropzone Docs

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago