Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jcalixte/vue-online-offline

Vue Component for Online & offline events
https://github.com/jcalixte/vue-online-offline

component event offline online slot vue vuejs

Last synced: about 2 months ago
JSON representation

Vue Component for Online & offline events

Awesome Lists containing this project

README

        

# vue-online-offline

Vue Component with online/offline slots

## Project setup
```
npm install vue-online-offline
```
or
```
yarn add vue-online-offline
```

## Usage

```vue


I'm online! ๐ŸŽ‰

I'm offline. ๐Ÿคจ

import VueOnlineOffline from 'vue-online-offline'

export default {
components: { VueOnlineOffline },
methods: {
isOnline() {
console.log(`Now I'm online!`)
},
isOffline() {
console.log(`Now I'm offline.`)
}
}
}

```