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
markdown-to-jsx
A very fast and versatile markdown toolchain. AST, React, React Native, SolidJS,...
200,072,413
2,394
Version History
| Version | Released | License |
|---|---|---|
| 1.0.1 | MIT | |
| 1.0.0 | MIT |