SocialDragon/socialdragon/assets/js/app.js

23 lines
476 B
JavaScript
Raw Normal View History

//$(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;
}
}
})