0.0.12 • Published 3 years ago

spa-reloader-vue v0.0.12

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
3 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

3 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

5 years ago

0.0.6

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago