sam-image-upload

An angular component that uploads images using native browser upload or drag-n-drop.


Keywords
image, upload, angular, ng, preview, file, drag, drop, drag&drop, angular2, drag-and-drop, image-uploader, tyepscript
License
MIT
Install
npm install sam-image-upload@1.0.0-rc.1

Documentation

Image Upload Module

Build Status

This angular library provides a light-weight component that handles file-drop, image previewing and image uploading.

Demo & Readme

Install

npm install angular2-image-upload --save

or

yarn add angular2-image-upload

Usage

In your app.module.ts import it using @NgModule decorator.

import { ImageUploadModule } from "angular2-image-upload";

@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.