[Vuejs]-How to get Full Calendar event id onClick using Laravel and Vue js?

0👍

Finally I was able to get the id like this and make everything work.
I changed the showEvent async function in CandidateCalendar.vue to this:

showEvent: async function(arg) {
    const { id } = this.events.find(
        event => event.id === +arg.event.id
    );
    const response = await candidateInterviewService.loadInterview(id);
    this.interview = response.data.interview;
    this.$refs.eventModal.show();
},

Leave a comment