Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Vue3 Todo
<template>
<ul>
<li
v-for="(todolist, index) in TodoLists"
:key="index"
>
<span class="name">{{todolist.name}}</span>
<span
class="delete"
@click="Delete(todolist.id)"
>x</span>
</li>
</ul>
</template>
<script>
export default {
props: {
TodoLists: Array,
Delete: Function
},
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment