@extensionengine/vue-radio

1.0.0-beta.5 • Public • Published

@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);
}

Readme

Keywords

none

Package Sidebar

Install

npm i @extensionengine/vue-radio

Weekly Downloads

100

Version

1.0.0-beta.5

License

MIT

Unpacked Size

12.6 kB

Total Files

5

Last publish

Collaborators

  • droguljic
  • vladimyr
  • kronicker
  • undersc0pe
  • mirodojkic
  • ikovac