vue-navigator-online
v0.0.2
Published
navigator.onLine plugin for Vue.js
Downloads
244
Readme
vue-navigator-online
navigator.onLine plugin for Vue.js
Requirements
- Vue.js (v2.0.0+)
Installation
$ npm install vue-navigator-online
Usage
import VueOnlinePlugin from 'vue-navigator-online'
Vue.use(VueOnlinePlugin)
<h1 v-if="isOnline">I'm online</h1>
<h1 v-else>I'm offline</h1>