I have this in my vue.js template:
<img src="/media/avatars/{{joke.avatar}}" alt="">
It is inside a loop that renders jokes. Other fields are rendered fine, but for the image I get this error in the console:
- src="/media/avatars/{{joke.avatar}}": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of , use .
I have also use v-bind:src="...
but get invalid expression
error.
How can I fix this?
v-bind:src
attempt – yuriy636