I have a component that takes an image url as parameter. Within my component I use this url as an image path
<img :src="imgUrl" />
I consume this component using
<MyComponent imgUrl="@/assets/images/logo.png" />
When passing this parameter the image file is not found. I tried multiple ways and provide an example
https://codesandbox.io/s/6zmj1q5ypr
What needs to get fixed?
I don't know if this is important but I created my app with the Vue CLI so I use webpack