Initially I started out with the zxing-js library, which also has a handy Angular wrapper, but I was unimpressed with the results. It is available under the permissive MIT license. QuaggaJSįor scanning barcodes, we will be using the Open Source QuaggaJS library. If you’re just interested in the code, just head over the companion repository at. In this guide, I am using Node 12 and Angular 9, the latest version at the time of writing. I chose SCSS as stylesheet processor, but it does not matter. Because our app will consist of a single screen, we do not need Angular Routing. You can call it anything you want, here we chose my-app. The ng tool will guide you through the creation of a new Angular app. That gives you the ng command-line tool, with which you can create a project, and do other interesting things. Assuming you have Node.js installed on your system, you need to install the package. Getting started with a new Angular application is pretty easy. Let’s start building an Angular app to read EAN codes. You can easily generate a code yourself, using a tool like the online barcode generator. What is noteworthy is that one of the 13 digits is a checksum, which helps with error correction.
0 Comments
Leave a Reply. |