0đź‘Ť
The template tag doesn’t actually mount anything on its own, so it has no place in the DOM and doesn’t bind. In your case, an easy solution is to just put v-count=”value” on the button tag. If there is a more specialized need for this directive and you’re just giving us placeholder code, putting it on a SPAN or DIV will make more sense than a template anyway.
- [Vuejs]-Problem with component destruction in vue
- [Vuejs]-How to reload fetched data from server when page loads (created) in Vue.JS
Source:stackexchange.com