[Vuejs]-How to return data updated on my vuejs component

0👍

As far as I know Vue.js, I would try:

wrapper.get_click_count() to call the real method,

wrapper.$data.click_count to get the value click_count:

0👍

wrapper.vm.get_click_count will call the method.

wrapper.vm.click_count or wrapper.data().click_count will retrieve the data.

There is also a .methods() method. Although there are problems when calling methods that use this.

👤Edward

Leave a comment