Can someone help me with using the img tag with vue.js?
Per the vue.js documentation, I tried:
<img v-bind:src={{ imgURL }}> //prints a null image
Here is my jsfiddle
Can someone help?
Can someone help me with using the img tag with vue.js?
Per the vue.js documentation, I tried:
<img v-bind:src={{ imgURL }}> //prints a null image
Here is my jsfiddle
Can someone help?
Above answers are both right but it doesn't really explains why the OP's making a mistake.
When you are using double brackets you are telling vue to do v-bind: so when you write v-bind and also use double brackets then you are double calling the same thus generating a mistaken behavior.
Short words: either use v-bind or double brackets {{ }}