https://github.com/shiling/vue-online-prop
This does only one thing. Exposes a reactive `$online` property to all Vue components.
https://github.com/shiling/vue-online-prop
Last synced: over 1 year ago
JSON representation
This does only one thing. Exposes a reactive `$online` property to all Vue components.
- Host: GitHub
- URL: https://github.com/shiling/vue-online-prop
- Owner: shiling
- License: mit
- Created: 2019-06-19T09:38:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-19T11:01:18.000Z (about 7 years ago)
- Last Synced: 2025-03-18T12:04:14.726Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 22
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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:
```html
Opps! You are offline!
```
That's all!
How to install
```javascript
import VueOnlineProp from "vue-online-prop"
Vue.use(VueOnlineProp)
```
It's a really tiny plugin (<1kb, unminified).