2017-01-20 00:21:44 +00:00
|
|
|
//$(document).foundation()
|
|
|
|
|
|
|
|
Vue.component('modal', {
|
|
|
|
template: '#modal-template'
|
|
|
|
})
|
|
|
|
|
|
|
|
var app = new Vue({
|
|
|
|
delimiters: ['[[', ']]'],
|
|
|
|
el: '#app, #image-modal',
|
|
|
|
data: {
|
|
|
|
items: data,
|
|
|
|
currentItem: false,
|
|
|
|
showModal: false
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
detailPopup: function (itm, event) {
|
|
|
|
// `this` inside methods points to the Vue instance
|
|
|
|
this.currentItem = itm;
|
|
|
|
this.showModal = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|