Answers for "add images in data object vuejs"

1

add images in data object vuejs

<template>
  <div id="app">
    <img :src="image" />
  </div>
</template>

<script>
import image from "./assets/logo.png"


export default {
    data: function () {
        return {
            image: image
        }
    }
}
</script>
Posted by: Guest on July-21-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language