Open codecatgo opened 6 years ago
i did it like this:
<img :src="map" @click="index = 0" class="img-fluid mb-4 pointer" :alt="details.title">
<gallery :images="map" :index="index" @close="index = null"></gallery>
data(){
index: null,
map: [
require("../assets/img/tehran.png")
],
}
it works for me :)
i want to know if i can define the gallery no loop,thanks a lot