# vue-cordova-plugin **Repository Path**: lp/vue-cordova ## Basic Information - **Project Name**: vue-cordova-plugin - **Description**: 在 https://github.com/kartsims/vue-cordova 基础上增加新的cordova接口功能 - **Primary Language**: NodeJS - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-09-14 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [Vue.js](https://vuejs.org/) plugin for [Cordova](https://cordova.apache.org/) > Note : Compatible with every version of VueJS (1.x and 2.x) # How to use Add the NPM package to your project ```shell npm install --save vue-cordova-plugin ``` Add the plugin to your Vue instance according to your setup ```javascript // CommonJS var Vue = require('vue') var VueCordova = require('vue-cordova-plugin') Vue.use(VueCordova) // import import Vue from 'vue' import VueCordova from 'vue-cordova-plugin' Vue.use(VueCordova) ``` The package provides a global object `Vue.cordova` ```javascript console.log(Vue.cordova) ``` This object provides API for the following [events](#events) and will hold the Cordova [plugins](#plugins) API objects you might be using. > **This library is a syntax helper.** It provides an easier access to the global variables defined by Cordova. ### Documentation For more information, check out [https://gitee.com/lp/vue-cordova](https://gitee.com/lp/vue-cordova)