Skip to content

Commit

Permalink
Update app.component.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
id1945 authored Nov 3, 2023
1 parent 5f63db2 commit ffd0749
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export class AppComponent implements AfterViewInit {

public qrCodeResult: ScannerQRCodeSelectedFiles[] = [];
public qrCodeResult2: ScannerQRCodeSelectedFiles[] = [];
public percentage = 80;
public quality = 100;

@ViewChild('action') action!: NgxScannerQrcodeComponent;

Expand Down Expand Up @@ -67,13 +69,13 @@ export class AppComponent implements AfterViewInit {
}

public onSelects(files: any) {
this.qrcode.loadFiles(files, 50, 90).subscribe((res: ScannerQRCodeSelectedFiles[]) => {
this.qrcode.loadFiles(files, this.percentage, this.quality).subscribe((res: ScannerQRCodeSelectedFiles[]) => {
this.qrCodeResult = res;
});
}

public onSelects2(files: any) {
this.qrcode.loadFilesToScan(files, this.config, 50, 90).subscribe((res: ScannerQRCodeSelectedFiles[]) => {
this.qrcode.loadFilesToScan(files, this.config, this.percentage, this.quality).subscribe((res: ScannerQRCodeSelectedFiles[]) => {
console.log(res);
this.qrCodeResult2 = res;
});
Expand Down

0 comments on commit ffd0749

Please sign in to comment.