2.4.4
https://jsfiddle.net/0epfuvja/3/
Vue property in custom plugin.Vue property.Computed property result new value.
Computed property doesn't change. Vue also not do template re-render.
That's normal, vue makes things added onto data reactive, but if you add something to Vue that won't be reactive. Here you have an example doing what you want: https://jsfiddle.net/gd11d31y/ by creating a new Vue instance with some data
@posva so how can I create reactive properties in plugin? Is it possible?
PS: In my application I have plugin in another file.
look at the fiddle. You can also look at other plugins like vuex to see how they achieve reactivity
Most helpful comment
That's normal, vue makes things added onto data reactive, but if you add something to
Vuethat won't be reactive. Here you have an example doing what you want: https://jsfiddle.net/gd11d31y/ by creating a new Vue instance with some data