45e1d55e8a
This removes foundation, introduces vuejs and adds Material Design
23 lines
476 B
JavaScript
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;
|
|
}
|
|
}
|
|
})
|