Answer the question
In order to leave comments, you need to log in
How to change local variable in vue for?
<td class="text-center no-wrap pa-2">
{{ localVar + 1234 }} // Value added always to 0, output always = 1234
// or
{{ localVar += 1234 }} // ERROR! infinite loop
</td>
data: () => (
{
localVar: 0,
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question