0.0.12 • Published 2 years ago

spa-reloader-vue v0.0.12

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
2 years ago

SPA Reloader for Vue

FOSSA Status NPM version

Vue Plugin for SPA Reloader.

Setup

To add SPA Reloader Plugin to your Vue project, execute:

# npm
npm i spa-reloader-vue
# yarn
yarn add spa-reloader-vue

Import the package in main.js:

// main.js
import SpaReloaderVue from "spa-reloader-vue";

To use it, the plugin needs the 'spaReloaderURL' with the websocket server ip and port.

Vue.use(SpaReloaderVue, { spaReloaderURL: "ws://192.168.1.143:8081" });

Add a new callback function to be executed every time an image update event is caught, by calling this method:

// everywhere
this.$spaSubscribe(this.myCallbackFunction);

Demo

Please, take a look at the Demo Project here.

License

FOSSA Status

0.0.12

2 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.5

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago