Updated: starter

This commit is contained in:
buchslava
2015-10-08 17:29:52 +03:00
parent 2175ef872f
commit b15fd587ae
28 changed files with 2320 additions and 13 deletions

View File

@@ -0,0 +1,22 @@
/// <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];

View File

@@ -0,0 +1,4 @@
### Usage
```typescript
import {fileUpload} from 'ng2-file-upload';
```

3
components/index.ts Normal file
View File

@@ -0,0 +1,3 @@
///<reference path="../tsd.d.ts"/>
export * from './file-upload/file-select';

3
components/module.ts Normal file
View File

@@ -0,0 +1,3 @@
declare module 'ng2-file-upload' {
export * from 'index';
}