Skip to content

Instantly share code, notes, and snippets.

@nhumphrey2 nhumphrey2/todolistitem.vue Secret
Created Dec 18, 2018

Embed
What would you like to do?
List Items Vue Simple App
<template>
<li>
{{ todo.text }}
<button @click="$emit('remove', todo.id)">
X
</button>
</li>
</template>
<script>
export default {
props: {
todo: {
type: Object,
required: true
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.