ddc-image-upload
Version:
Dusdusan Image Upload
35 lines (22 loc) • 881 B
Markdown
# Image Upload Module
[](https://travis-ci.org/aberezkin/ng2-image-upload)
This angular library provides a light-weight component that handles file-drop, image previewing and image uploading.
### [Demo & Readme](https://aberezkin.github.io/ng2-image-upload/)
### Install
`npm install angular2-image-upload --save`
### Usage
In your `app.module.ts` import it using `@NgModule` decorator.
`import { ImageUploadModule } from "angular2-image-upload";`
````typescript
@NgModule({
imports: [
...,
ImageUploadModule.forRoot(),
...
]
})
````
Now you have `image-upload` declaration and you can use it in your html code.
`<image-upload></image-upload>`
You can use bindings to configure this element for your needs.
See the demo for more detailed instructions.