2👍
✅
Using v-text will replace inner text/html of the element and thus you cannot see the delete button inside that. So you have to do as your first example code.
1👍
Its actually changing the elements and setting the text.
So if you want the text and also button then your first method (Mustache
interpolations
) is the way
If you need to update the part of
textContent
, you should use {{ Mustache }} interpolations.
Source:stackexchange.com