@extensionengine/vue-radio
v1.0.0-beta.5
Published
Vue radio plugin
Downloads
517
Keywords
Readme
@extensionengine/vue-radio
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);
}