Ng barcode scanner

hi,

I am using the ng cordova barcode scanner I have set up the database with the data that I will be using the only problem is i dont know how to allow the data to be sent to the front end when a user scans a specific barcode

any help would be grateful

thanks

Where do you have the database?
Do you already have the scanned barcode in your app available?

the database im using is firebase and i currently have the barcode set up just need to be able to get the data when the user scans the items