0

Here's the template in my component code

<template>
    <img :src="'@/assets/images/' + imagesrc" />
</template>

This ends up rending as

<img src="@/assets/images/vacation.png">

I cannot figure out the proper syntax to make this work with attribute binding.

user3953989
  • 1,844
  • 3
  • 25
  • 56
  • See https://stackoverflow.com/questions/47313165/how-to-reference-static-assets-within-vue-javascript – jjj Mar 14 '23 at 14:59

0 Answers0