Skip to content

Commit

Permalink
fix(ngOnChanges): add parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Dec 25, 2016
1 parent 5df0ffd commit 8fc1ad9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ngx-uploader",
"description": "Angular File Uploader",
"version": "2.0.0",
"version": "2.0.1",
"license": "MIT",
"main": "index.js",
"typings": "index.d.ts",
Expand Down
5 changes: 3 additions & 2 deletions src/directives/ng-file-drop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {
HostListener,
Inject,
OnChanges,
OnInit
OnInit,
SimpleChange
} from '@angular/core';
import { NgUploaderService } from '../services/ngx-uploader';
import { INgUploaderOptions, NgUploaderOptions, UploadedFile, UploadRejected } from '../classes';
Expand Down Expand Up @@ -59,7 +60,7 @@ export class NgFileDropDirective implements OnChanges, OnInit {
this.initEvents();
}

ngOnChanges() {
ngOnChanges(changes: {[propName: string]: SimpleChange}) {
if (!this.options) {
return;
}
Expand Down
5 changes: 3 additions & 2 deletions src/directives/ng-file-select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
Output,
HostListener,
Inject,
OnChanges
OnChanges,
SimpleChange
} from '@angular/core';
import { NgUploaderService } from '../services/ngx-uploader';
import { INgUploaderOptions, NgUploaderOptions, UploadedFile, UploadRejected } from '../classes';
Expand All @@ -28,7 +29,7 @@ export class NgFileSelectDirective implements OnChanges {
@Inject(ElementRef) public el: ElementRef,
@Inject(NgUploaderService) public uploader: NgUploaderService) { }

ngOnChanges() {
ngOnChanges(changes: {[propName: string]: SimpleChange}) {
if (!this.options) {
return;
}
Expand Down

0 comments on commit 8fc1ad9

Please sign in to comment.