Exploring ways to incorporate Scanner-JS into my Angular2 project, a tool I discovered while tinkering with the framework.
Being a novice in Angular2, this question might be elementary for some.
I successfully installed scanner-js via npm
npm install scanner-js --save
How can I effectively import this into my typescript file?
I tried the following (please bear with me)
import { scanner } from 'scanner-js'
Unfortunately, it did not work as expected and resulted in an error stating:
Uncaught ReferenceError: scanner is not defined
Any guidance on resolving this issue would be highly appreciated.
Thank you in advance.