Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 365 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 365 Bytes

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)

It's a really tiny plugin (<1kb, unminified).