In my vue.js component, I am calling a Bootstrap modal within a function. I want to call another function after the modal is closed, but I am facing issues with the scope.
this.myFunction() // This works here
$('#app-modal-warning').on('hidden.bs.modal', function () {
this.myFunction() // This does not work here
})
$('#app-modal-warning').modal('show')
Error: this.myFunction is not a function