Answer the question
In order to leave comments, you need to log in
How to change styles of dynamically created elements in vuejs?
<ul>
<li v-for="post in posts">
<button>
Удалить
</button>
</li>
</ul>
.invisible {
display: none
}
Answer the question
In order to leave comments, you need to log in
When you click on delete, you do not need to assign a class, you need to remove it from the collection. Or, if there is a subtask to display also remote ones, then change the property, and display the filtered elements. This is not jquery for you.
Well, there is a good example in the documentation
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question