Updated: prettify the solution

This commit is contained in:
buchslava
2015-10-15 19:32:07 +03:00
parent a2f774a0be
commit 68306ab6fc
5 changed files with 10 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ import {FileUploader} from './file-uploader';
@Directive({
selector: '[ng2-file-drop]',
properties: ['config: ng2FileDrop', 'uploader'],
properties: ['uploader'],
events: ['fileOver'],
host: {
'(drop)': 'onDrop($event)',
@@ -18,7 +18,6 @@ import {FileUploader} from './file-uploader';
})
export class FileDrop {
public uploader:FileUploader;
public config:any = {};
private fileOver:EventEmitter = new EventEmitter();
constructor(private element:ElementRef) {

View File

@@ -10,14 +10,13 @@ import {FileUploader} from './file-uploader';
@Directive({
selector: '[ng2-file-select]',
properties: ['config: ng2FileSelect', 'uploader'],
properties: ['uploader'],
host: {
'(change)': 'onChange()'
}
})
export class FileSelect {
public uploader:FileUploader;
public config:any = {};
constructor(private element:ElementRef) {
}