Vue Concatenate variable and text in attribute binding image src example

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:

Livewire Component Library


Host Laravel Application on DigitalOcean

Use coupon 5balloons on this Cloudways Affiliate URL to get special discount.
<img :src="imgPreUrl + 'img/logo.png'">

Site Footer