0👍
If plugin is not working, its either you forgot to add Vue.use(ToggleButton))
before using it or you are trying to place it inside your template directly.
For other components to work inside your own you must initialize
it like this
import ToggleButton from 'vue-js-toggle-button'
export default {
data: function () { . . . },
components: {
'toggle-button': ToggleButton,
},
template: `
<ul v-for="module in modules">
<li>
<toggle-button @change="onChangeEventHandler"/>
</li>
</ul>`
}
Source:stackexchange.com