@@ -10,6 +10,10 @@ For demos please see [demos page](http://ng2-uploader.com).
1010npm install ng2-uploader --save
1111```
1212
13+ ### API Docs
14+
15+ [ http://docs.ng2-uploader.com ] ( http://docs.ng2-uploader.com )
16+
1317### Available parameters
1418
1519|Parameter | Example Value
@@ -54,6 +58,7 @@ import { Ng2UploaderModule } from 'ng2-uploader';
5458})
5559// app.component.ts
5660import { Component } from ' @angular/core' ;
61+ import { Ng2UploaderOptions } from ' ng2-uploader' ;
5762
5863@Component ({
5964 selector: ' demo-app' ,
@@ -62,7 +67,7 @@ import { Component } from '@angular/core';
6267export class DemoApp {
6368 uploadFile: any ;
6469 hasBaseDropZoneOver: boolean = false ;
65- options: Object = {
70+ options: Ng2UploaderOptions = {
6671 url: ' http://localhost:10050/upload'
6772 };
6873 sizeLimit = 2000000 ;
@@ -118,14 +123,15 @@ This example show how to use available options and progress.
118123
119124``` ts
120125import { Component , OnInit , NgZone } from ' @angular/core' ;
126+ import { Ng2UploaderOptions } from ' ng2-uploader' ;
121127
122128@Component ({
123129 selector: ' app-component' ,
124130 templateUrl: ' app.component.html'
125131})
126132export class AppDemoComponent implements OnInit {
127133 private zone: NgZone ;
128- private options: Object ;
134+ private options: Ng2UploaderOptions ;
129135 private progress: number = 0 ;
130136 private response: any = {};
131137
0 commit comments