Importing npm package?

Hi, im trying to import this package into my angular 2 project:

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

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

scanStuff() {


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




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!