We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d085188 + 33db078 commit 2fcb4e6Copy full SHA for 2fcb4e6
1.hello-world/3.read-video-angular/src/app/img-decode/img-decode.component.ts
@@ -16,7 +16,7 @@ export class ImgDecodeComponent implements OnInit {
16
decodeImg = async (e: any) => {
17
try {
18
const reader = await this.pReader;
19
- const results = await reader.decode(e.target.files[0]);
+ const results = await reader!.decode(e.target.files[0]);
20
for (const result of results) {
21
alert(result.barcodeText);
22
}
@@ -40,4 +40,4 @@ export class ImgDecodeComponent implements OnInit {
40
41
console.log('ImgDecode Component Unmount');
42
43
-}
+}
0 commit comments