M
M
Michael R.2018-11-12 15:34:37
Vue.js
Michael R., 2018-11-12 15:34:37

How to correctly substitute the url address before the image?

Wrote a training Vue component with a template. I used template literals in the template and there was a problem with substituting the url address before the image.
I tried different options, but I could not solve the problem.

How in my case to substitute the address to the image taken from the object?

<img src="{{comment.comment_image}}"/>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-11-12
@Mike_Ro

<img :src="comment.comment_image" />

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question