Working modal component
This commit is contained in:
committed by
Andrew Croce
parent
0782be6f92
commit
b16fe24ddc
19
js/index.js
19
js/index.js
@@ -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')
|
||||
|
Reference in New Issue
Block a user