@extensionengine/vue-radio

Vue radio plugin

Usage no npm install needed!

<script type="module">
  import extensionengineVueRadio from 'https://cdn.skypack.dev/@extensionengine/vue-radio';
</script>

README

@extensionengine/vue-radio

Npm version GitHub license js @extensionengine style style @extensionengine style Open Source Love

Usage

// main.js
import Radio from '@extensionengine/vue-radio';

Vue.use(Radio);
// vue component
import { mapChannels, mapRequests } from '@extensionengine/vue-radio';

computed: {
  ...mapChannels({ myChannel: 'channelName' }) // Get channel and map it to this.myChannel computed property
},

methods: {
    ...mapRequests('channelName', ['requestName']), // Map channel request to this.requestName method
    // Call mapped method: this.requestName(args);
}