How to import the cordova plugins in my project

Viewed 2769

I have created a Vuejs project along with cordova for Hybrid APP.

In one of the file I want to use Cordova plugin so for that I had added the plugin through

cordova add plugin command and it got installed and I can see the plugin in the plugins folder of the root directory.

Now how should I use this plugin in my code ?

Anyone used cordova plugins with vue ?

update

console.log(cordova.plugins.barcodeScanner);

Uncaught ReferenceError: cordova is not defined
2 Answers
Related