Skip to content

This does only one thing. Exposes a reactive `$online` property to all Vue components.

License

Notifications You must be signed in to change notification settings

shiling/vue-online-prop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

This does only one thing. Exposes a reactive `$online` property to all Vue components.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published