Importing npm package?

Hi, im trying to import this package into my angular 2 project:
https://www.npmjs.com/package/cordova-plugin-qrscanner

i use "meteor npm install --save cordova-plugin-qrscanner " in my project root.

then in my .ts file i have the function below:

scanStuff() {

QRScanner.scan(displayContents);

function displayContents(err, text){
if(err){
// an error occurred, or the scan was canceled (error code 6)
} else {

alert(text);

}
}

QRScanner.show();

}


in my html file i have

<button (click)="this.scanStuff()"> Scan </button>

When i press the button “Scan” after i load my app in android nothing happens.

Do i have to import the plugin somehow? if so where and in what files?

any help is greatly appreciated!