Recommendation
In order for the community to correctly receive the question you are asking, it is good that you understand that the site has some important parameters that must be followed:
To improve your chances of getting an answer, here are some tips:
How do I make a good question?
Search, and investigate
... and keep a record of what you find. Even if you do not find a useful answer anywhere on the site, including links to related questions or that have not helped, you can help others understand how your question is different from the rest. For more information follow this link
Requirement
You must bear in mind that in order to read a barcode you need specific hardware, you can start with a writing code that works by a kind of commands that it injects, as it were, into the operating system.
Connected with USB to the client
You must have it configured according to the type of reader (be 2D for PDF417 code or similar codes)
Bring the code closer to the reader
If you have an entry field in which the cursor is on the or in an excel you will see that the reading is transferred to the document.
Web or Mobile
The answer is depends, you can do it in both ways, everything varies according to the specific need you have.
What's good?
As you have web knowledge, it will be very easy to implement a hybrid application with Ionic, since you know Angular, so your learning curve will be much shorter, also, currently in version 4 (Beta) Angular is your most stable customer.
Hybrid Applications
Hybrid applications are mobile applications designed in a web programming language, whether HTML5, CSS or JavaScript, together with a framework that allows you to adapt the web view to any view of a mobile device. In other words, they are nothing more than an application built to be used or implemented in different mobile operating systems, such as iOS, Android or Windows Phone, avoiding the task of creating an application for each operating system.
Personally I think that, the more solutions we can provide to a client, we will be much more efficient. But, to perform this functionality we must not use a reader, we must develop an application that can read code through its camera, a clear example can be found in the official documentation of ionic
QR Scanner
A fast, energy-efficient and highly configurable QR code scanner for Cordova applications.
Requires Cordova plugin: cordova-plugin-qrscanner
.
For more information, see the QR Scanner Add-on documents: qr code repository