vue-capacitor
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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 --save

Install using yarn

# install it via yarn 
yarn add vue-capacitor

Direct 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();

Readme

Keywords

none

Package Sidebar

Install

npm i vue-capacitor

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

3.6 kB

Total Files

7

Last publish

Collaborators

  • it_mike_s