I have just started learning Vue, so it might be silly question.
I have created a Vue component and want to do string concatenation in value bind.
Like this.
Vue.component('button-counter',{
data:function(){
return { count : 0}
},
template:"<input type='button' v-on:click='count++' v-bind:value='"Total Counter :"+count'/>"
})
But it's seems to be wrong syntax. Can anyone please help me on how I can achieve this.
In example there is another way of doing this, e.g:
template: '<button v-on:click="count++">You clicked me {{ count }} times.</button>'
})
But is it possible to achieve using value binding?