vue-capacitor
v1.0.2
Published
Capacitor plugin wrapper for VueJS 2+
Readme
Introduction
Vue Capacitor Plugins is a simple wrapper for easy use of Capacitor Plugins in VueJS 2+
Installation
Install using npm
# install it via npm
npm install vue-capacitor --saveInstall using yarn
# install it via yarn
yarn add vue-capacitorDirect usage with html
<script>
Vue.use(VueCapacitorPlugins)
</script>Usage
It is simple. couple of lines all what you need.
// register the plugin on vue
import VueCapacitorPlugins from 'vue-capacitor';
Vue.use(VueCapacitorPlugins)// you can call like this in your component
this.$capacitorPlugins.PLUGIN_NAME.pluginMethod();
// and also
Vue.capacitorPlugins.PLUGIN_NAME.pluginMethod();