I have a VUE compoment rendering inside index.vue
in index.vue we have some data
data(){
return {
splashIsActive: true,
tutorialIsActive: false,
gameIsActive: false
}
}
and the component inside index.vue
<SplashBox v-if="splashIsActive"/>
Then, if we go to splashBox there's a button.
<button @click="debug">....
Is there any way to create a method that after clicking the button sends, or changes splashIsActive to false, instead of true as it is stored in index.vue?
Thanks a lot