Home › Forums › JavaScript › create html tag with javascript › Reply To: create html tag with javascript
December 10, 2018 at 2:21 am
#280019
JeroenR
Participant
I’m not sure what it is you’re asking for here, but when using vue, I don’t think you should be creating html elements with javascript, but use the ones in your template.
So if you want to have the image being shown, then you can use <img></span>
for rendering the image with the source instead of {{item.bild}}
. Because the latter just outputs text. You don’t have to create an image element yourself for this, just change this in the template.