Skip to content

A tiny plugin to detect offline status & respond to changes in the browser for vue.js 2.x

License

Notifications You must be signed in to change notification settings

bigezhang/vue-isoffline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-isoffline Travis

A tiny plugin to detect offline status & respond to changes in the browser for vue.js 2.x

Installation

npm install -S vue-isoffline

Usage

import VueisOffLine from 'vue-isoffline'
Vue.use(VueisOffLine)
<h1 v-if="isOffLine">offline</h1>

or

watch: {
  isOffLine (val) {
    if (val) {
      console.log('I am offline')
    }
  }
}

About

A tiny plugin to detect offline status & respond to changes in the browser for vue.js 2.x

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published