Working modal component

This commit is contained in:
Patrick Smith
2018-08-06 16:54:12 -04:00
committed by Andrew Croce
parent 0782be6f92
commit b16fe24ddc
4 changed files with 48 additions and 32 deletions

View File

@@ -1,6 +1,23 @@
import classes from '../styles/atat.scss'
import Vue from 'vue/dist/vue'
import './example'
const app = new Vue({
el: '#vue-root',
methods: {
closeModal: function(name) {
this.modals[name] = false
},
openModal: function (name) {
this.modals[name] = true
}
},
data: function() {
return {
modals: {
styleguideModal: false,
}
}
}
})
console.log('hello from index')