mirror of
https://github.com/jcreek/bank-statement-analyser.git
synced 2026-07-12 18:33:46 +00:00
42 lines
614 B
Vue
42 lines
614 B
Vue
<template>
|
|
<div id="app">
|
|
<button
|
|
type="button"
|
|
class="btn"
|
|
@click="showModal"
|
|
>
|
|
Open Modal!
|
|
</button>
|
|
|
|
<modal
|
|
v-show="isModalVisible"
|
|
@close="closeModal"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import Modal from '../components/Modal.vue';
|
|
|
|
export default {
|
|
name: 'app',
|
|
components: {
|
|
Modal,
|
|
},
|
|
data () {
|
|
return {
|
|
isModalVisible: false,
|
|
};
|
|
},
|
|
methods: {
|
|
showModal() {
|
|
this.isModalVisible = true;
|
|
},
|
|
closeModal() {
|
|
this.isModalVisible = false;
|
|
}
|
|
},
|
|
};
|
|
</script>
|
|
|