2👍
In the code:
<td v-for="h in hs"/>{{h}}</td>
You are closing your td
in />
.
So the code above is actually:
<td v-for="h in hs"></td>{{h}}</td>
Which is why you get h
as undefined.
Fix: Don’t close the td
:
<td v-for="h in hs">{{h}}</td>
Source:stackexchange.com