Currently, I am dealing with a list containing @click events attached to individual elements. Whenever a user clicks on an element, I am dynamically generating additional elements using v-if. The challenge I am facing is that I need to manipulate these dynamically created elements, but if I try to do so within the method called by @click, the elements have not yet been created. Is there a way to execute a function after Vue has finished calling this method?
Here is a snippet of my code:
<li class="food" @click="loadFood(food)">