Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aberezkin/ng2-image-upload

Angular 2 component for image uploading
https://github.com/aberezkin/ng2-image-upload

angular angular2 drag-and-drop image-uploader tyepscript

Last synced: 5 days ago
JSON representation

Angular 2 component for image uploading

Awesome Lists containing this project

README

        

# Image Upload Module
[![Build Status](https://travis-ci.org/aberezkin/ng2-image-upload.svg?branch=master)](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
````

or

````
yarn add angular2-image-upload
````

### Usage

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

````typescript
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.

``

You can use bindings to configure this element for your needs.

See the demo for more detailed instructions.