Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

vue-onliner

svoosh13MIT1.0.2

A reactive mixin showing the interner connection for vue.js

vue, connection-status, online, offline, vue-online, vue-offline

readme

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)
      }
    }
  }
}