Nothing Special   »   [go: up one dir, main page]

Skip to content

Vue component for detecting the network status - online or offline

Notifications You must be signed in to change notification settings

mbj36/vue-status

Repository files navigation

vue-status

Vue component for detecting the network status - online or offline

Requirements

  • Vue.js 2.x

Installation

yarn add vue-status

or

npm install vue-status

Demo

Edit Vue Template

Usage

To use it locally in your component

import VueStatus from 'vue-status'

export default {
  components: {
    VueStatus
  }
};
<vue-status>
    <h2 slot="online">You are online (Any online content can be put here)</h2>
    <h2 slot="offline">You are offline (Any Offline content can be put here)</h2>
 </vue-status>

About

Vue component for detecting the network status - online or offline

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published