How to set up a dynamic background image vue
<div class="img" v-for="(cardImgVal, index) in cardImg" :key="index" @click="go(cardImgVal)"> <div class="card" :style="{background: 'url( '+ cardImgVal.imageURL +')'}"></div> </div>
We need to bind style properties
cardImg array of data storage
cardImgVal name for themselves,
cardImgVal.imageURL pictures of address