Skip to content

Commit

Permalink
update readme and demo component
Browse files Browse the repository at this point in the history
  • Loading branch information
Vugar_Abdullayev committed Dec 6, 2020
1 parent 78a59a2 commit 47b4adb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion projects/file-picker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-awesome-uploader",
"version": "10.0.1",
"version": "10.0.2",
"description": "Angular Library for uploading files with Real-Time Progress bar, File Preview, Drag && Drop and Custom Template with Multi Language support",
"peerDependencies": {
"@angular/common": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0",
Expand Down
1 change: 1 addition & 0 deletions src/app/demo-file-picker/demo-file-picker.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
[showPreviewContainer]="true"
[customValidator]="myCustomValidator"
[enableAutoUpload]="true"
[itemTemplate]="itemTemplate"
(fileAdded)="onFileAdded($event)"
(fileRemoved)="onFileRemoved($event)"
>
Expand Down
22 changes: 11 additions & 11 deletions src/app/demo-file-picker/demo-file-picker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ export class DemoFilePickerComponent implements OnInit {

constructor(private http: HttpClient) { }

// public ngOnInit(): void {
// this.uploader.files = [
// {
// fileName: 'My File 1 for edit.png', file: null
// },
// {
// fileName: 'My File 2 for edit.xlsx', file: null
// }
// ] as FilePreviewModel[];
// }
public ngOnInit(): void {
this.uploader.files = [
{
fileName: 'My File 1 for edit.png', file: null
},
{
fileName: 'My File 2 for edit.xlsx', file: null
}
] as FilePreviewModel[];
}

public onValidationError(er: ValidationError): void {
console.log('validationError', er);
Expand All @@ -71,7 +71,7 @@ export class DemoFilePickerComponent implements OnInit {
}

public onFileRemoved(file: FilePreviewModel): void {
console.log(this.uploader.files);
console.log('fileRemoved', this.uploader.files);
}

public removeFile(): void {
Expand Down

0 comments on commit 47b4adb

Please sign in to comment.