If I do this:
<ul>
<li v-for="value in testData">
<span v-if="Array.isArray(value)" v-for="morevalue in value"> {{ morevalue }}</span>
<span v-else> {{ value }} </span>
</li>
</ul>
The span in v-else will also be looped ON THE SECOND V-FOR even though it doesn't have any v-for on it, why?
This is the Vue instance:
new Vue({
el: '#exercise',
data: {
testData: {
name: 'TESTOBJECT',
id: 10,
data: [1.67, 1.33, 0.98, 2.21]
}
}
});