I’m a complete beginner learning VueJS.
And I’m making a simple to-do app.
I need to change the data of a sibling component
<TodoContainer/> when there’s an event happens in the component
(more specifically, I need to add the entered to-do input to todoList data array when user press enter on the AddTodo component)
But I can’t figure out how to do that.
I know how to pass data to a sibling element using
props, but I don’t know how to make changes to the sibling’s data when an event happens.
If anyone could look at my code and tell me what’s I’m missing, that’d be really appreciated.