Skip to content

Commit

Permalink
Fix ng2 AoT complier errors:
Browse files Browse the repository at this point in the history
```
dist/tmp/node_modules/ng2-uploader/src/directives/ng-file-drop.ngfactory.ts(64,35): error TS2346: Supplied parameters do not match any signature of call target.
dist/tmp/node_modules/ng2-uploader/src/directives/ng-file-drop.ngfactory.ts(68,35): error TS2346: Supplied parameters do not match any signature of call target.
```
  • Loading branch information
karlhiramoto committed Nov 19, 2016
1 parent 08363f1 commit 7c79fa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/directives/ng-file-drop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ export class NgFileDropDirective {
}

@HostListener('dragover', ['$event'])
public onDragOver():void {
public onDragOver(event:any):void {
this.onFileOver.emit(true);
}

@HostListener('dragleave', ['$event'])
public onDragLeave():any {
public onDragLeave(event:any):any {
this.onFileOver.emit(false);
}

Expand Down

0 comments on commit 7c79fa8

Please sign in to comment.