How to use barcode scanner device with angular + spring boot

I am developing an retail application and want to use barcode scanner device to generate the bill. I am using angular in UI and spring boot in backend.

Can any one help me for the same. Thanks in advance.

Source: Angular Questions