Vue.js data variable concatenate with image SRC

In your Vue component, sometimes you have to change the :src of the image tag with Vue data variable

If you want to change the following code and you need to put host name as a variable

I have introduced a variable public_url

You can not use curly brackets (moustache tags) in attributes. Use the above method to add variable to attribute