I’m using vue with webpack. This is my code:
export default {
data() {
return {
start: true,
logReg: false,
}
},
methods: {
checkLogged() {
this.start = false;
this.logReg = true;
},
closem(pathTo) {
$('#mm').modal('hide')
this.$router.push({ path: pathTo })
}
},
mounted() {
$('#mm').on('hide.bs.modal', function () {
this.checkLogged();
});
},
}
I’m trying to call “checkLogged” method inside the jquery event but it says the function is undefined. How can i call the method?