Iam tryng in tutorial vue js basic , but i have error on v-bind . i use v-for but having error like this :
<template>
<div class="todo-list">
<todo-items
v-for="todo in todos" // error on here
:title="todo.title" // here
:description="todo.description"/> // on here
</div>
</template>
<script>
import TodoItems from '@/components/TodoItems.vue'
export default {
components:{
TodoItems
},
props:{
todos:{
required:true,
type:Array
}
}
}
</script>
i dont know what happen on my code , but this tutorial is fine and not get error . but my code is have error on v-for
this error is
Errors compiling template:
The value for a v-bind expression cannot be empty. Found in "v-bind:"
can someone tell me about this error ?
v-bind:=""orv-bind:or:=""or maybe even just:by itself. The full error message should include details of the template that failed. I suggest studying that closely to check everything is as expected.