Files
ng2-file-upload/components/file-upload/file-select.ts
2015-10-08 17:29:52 +03:00

23 lines
510 B
TypeScript

/// <reference path="../../tsd.d.ts" />
import {
Component, View,
Directive, LifecycleEvent,
EventEmitter, ElementRef, Renderer,
CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass
} from 'angular2/angular2';
@Directive({
selector: '[ng2-file-select]',
properties: ['config: ng2FileSelect']
})
export class FileSelect {
public config:any = {};
constructor(private element:ElementRef, private renderer:Renderer) {
console.log('it works!');
}
}
export const fileUpload:Array<any> = [FileSelect];