Right now, I am developing a vue application with a structure that closely resembles the following:
<div class="characters">
<Character
v-for="character in this.charactersToSearch"
:key="character.id"
:name="character.name"
:character="character"
@click="showMoreInfo" />
<div>
<Modal v-if="showModal" />
I had initially hoped to trigger a click event on my <Character>
component to display the Modal, but unfortunately, it did not work as expected. So, how can I activate the modal from within the child component when the modal is located in the parent component?