feat(package): upgrade to ng v2.3+ (#574)

This commit was merged in pull request #574.
This commit is contained in:
Dmitriy Shekhovtsov
2017-01-17 16:38:35 +02:00
committed by GitHub
parent f5b5dc3bd2
commit 3cc6a9946f
75 changed files with 3856 additions and 3264 deletions

View File

@@ -0,0 +1,23 @@
import { Component } from '@angular/core';
import { FileUploader } from 'ng2-file-upload';
// const URL = '/api/';
const URL = 'https://evening-anchorage-3159.herokuapp.com/api/';
@Component({
selector: 'simple-demo',
templateUrl: './simple-demo.html'
})
export class SimpleDemoComponent {
public uploader:FileUploader = new FileUploader({url: URL});
public hasBaseDropZoneOver:boolean = false;
public hasAnotherDropZoneOver:boolean = false;
public fileOverBase(e:any):void {
this.hasBaseDropZoneOver = e;
}
public fileOverAnother(e:any):void {
this.hasAnotherDropZoneOver = e;
}
}