vue-online-prop
v1.0.1
Published
VueJS plugin that exposes $online to Vue components to indicate whether a user connected to the internet or not
Downloads
299
Readme
This does only one thing, and one thing only.
It exposes a reactive property $online
to every component, which you can use like this:
<div v-if="!$online">
Opps! You are offline!
</div>
That's all!
How to install
import VueOnlineProp from "vue-online-prop"
Vue.use(VueOnlineProp)