Dynamic attribute: src - no image appears. What's wrong?

  • 0
    Could this Vue CLI work? For if I install the path directly, then additional numbers appear in the name in the devtools: /img/model_1.c5430f1b.jpg the image appears. But the image is not displayed dynamically, although the path is being written.

    Doesn't work:
    <img v-if="currentModel" :src= "img_path" max-width="300"/>  
     data: () => ({
        img_path: '@/assets/img/model_1/img.jpg'
    Vue.js Gabriella Francis, Jul 7, 2019

  • 1 Answers
  • 0
    Did you want runtime aliases to work?

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!