vue-onliner

1.0.2 • Public • Published

vue-onliner

A reactive mixin showing the interner connection for vue.js

Installation

npm install vue-onliner --save

Usage

That's a basic example:

import Vue from 'vue'
import vueOnliner from 'vue-onliner'

Vue.use(vueOnliner);

In component's:

export default {
  async created() {
    if (this.onliner) {
      try {
        // Some async action's...
      } catch (error) {
        throw Error(error)
      }
    }
  }
}

Package Sidebar

Install

npm i vue-onliner

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

3.13 kB

Total Files

4

Last publish

Collaborators

  • svooosh