I am currently attempting to use Scanner-JS in one of my Angular2 projects I have made to try to learn.
I am very new to Angular2, so this question may seem very simple to some of you.
I have installed scanner-js using npm
npm install scanner-js --save
Is there a way I can import this into my typescript?
I have attemped to do the following (please don't laugh)
import { scanner } from 'scanner-js'
But this didn't work I get an error saying
Uncaught ReferenceError: scanner is not defined
Would anybody be able to give me a push in the right direction on how to get this to work?
Thanks in advance.