vue-online-prop

VueJS plugin that exposes $online to Vue components to indicate whether a user connected to the internet or not
14,260 22
Install
npm install vue-online-prop
Latest Version:1.0.1
License:MIT
Last Updated:Jun 19, 2019
Links: GitHub  ·  npm
Maintainer: shilingtai

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)

Related Packages

eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591
markdown-to-jsx

A very fast and versatile markdown toolchain. AST, React, React Native, SolidJS,...

200,072,413 2,394
vee-validate

Painless forms for Vue.js

45,982,707 11,260
vue-resize

Detects DOM element resizing

43,879,804 505
@flmngr/flmngr-vue

Flmngr file manager (Local disk / Amazon S3 / Azure Blob) for Vue

24,076,776

Version History

Version Released License
1.0.1 MIT
1.0.0 MIT