3👍
✅
You need to explicitly make the data reactive using Vue.observable:
Vue.prototype.$myPlugin = Vue.observable({
data: 0,
setValue(val) {
this.data = val
}
})
Source:stackexchange.com