-
-
Save nhumphrey2/e3d7ae4a8c4636940e548039aa4e99fb to your computer and use it in GitHub Desktop.
List Items Vue Simple App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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