0👍
To control the display of a division, I incorrectly used v-show as
v-show=”result_count=0“, instead of v-show=”result_count==0“. This was resetting the value of vm.result_count.
- [Vuejs]-Vue.js – Computed property is not triggered when data is changing
- [Vuejs]-How to avoid component rerendering when route change which similar to keep-alive in vuejs?
Source:stackexchange.com