How can I run a statement when modal close on vue?
Add an event listener on the modal component:
<b-modal ref="modal" id="modalInvoice" size="lg" title="Invoice" @hidden="onHidden"> <Invoice/> <div slot="modal-footer" class="w-100"> <b-btn size="sm" class="float-right" variant="warning" @click="show=false"> <i class="fa fa-print"></i> Print </b-btn> </div></b-modal>methods: { onHidden (e) { console.log('the modal was hidden') }}
All the events are listed under the Component Reference section.