Apologies for my English not being perfect :) I have used the event Emit and on methods to transfer variable details from one module to another. The issue I am facing is mentioned above. Here is my code:
In the App.vue file
<v-btn class="ma-2" @click="closeModal()" tile large color="teal" icon>
<v-icon>mdi-menu</v-icon>
</v-btn>
methods: {
closeModal() {
this.mini = !this.mini;
Event.$emit("i-got-clicked", this.mini);
}
}
In the left navigation file
<v-content :v-show="mini">
mounted() {
Event.$on("i-got-clicked", mini => {
//Although 'mini' appears to be defined, it is never actually used
this.mini = !this.mini;
});
}
I would greatly appreciate any answers. Thank you in advance!