new Vue({
el:'.container',
data:{
areas: new Array(24),
}
})
Vue.component('photos',{
template:'#template-areas',
props:['index'],
})
v-for="(item, index) in areas"
:key="index"
:index="index+1"
template id="template-areas"
div class=area{{index}}
v-bind:class="'area' + index"