v-bind image src url code example
Example 1: vue vbind image
<img :src="joke.avatar" />
Example 2: 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>