If you are looking to concatenate a variable and a text together while binding an HTML attribute (for example src of image attribute)

Here is how you can do it in Vue

<img v-bind:src="imgPreUrl + 'img/logo.png'">

 

Or the short version:

 

<img :src="imgPreUrl + 'img/logo.png'">
Comments