Answer the question
In order to leave comments, you need to log in
Why can't Vue.js v-for list output?
Tell me what's wrong. I've been fighting for an hour now. Does not display a list, for the life of me.
<template>
<ul id="example-1">
<li v-for="todo in items">
{{ todo }}
</li>
</ul>
</template>
<script>
export default {
data:{
items: ['iPhone 7', 'Galaxy S8', 'Nokia N8', 'Xiaomi Mi6']
},
}
</script>
<style>
</style>
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