I'm trying to do the following, but the image doesn't output correctly. Where I display the image in display.vue, if I print {{ someText }}, I get the correct file path (../assets/city.png).
display.vue
<template> <example :someText="'../assets/' + stamp + '.png'"></example> </template> <script> import example from './example.vue' export default { name: "", data() { return { stamp: "city" } } components: [ example ] }; </script> example.vue
<template> <img :src="someText" /> </template> <script> export default { name: "example", props: ["someText"] }; </script>