SocialDragon/socialdragon/assets/js/app.js
Marvin Scholz 45e1d55e8a Rework web frontend
This removes foundation, introduces vuejs and adds Material Design
2017-01-20 01:22:35 +01:00

23 lines
476 B
JavaScript

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