Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@SitePointEditors
Forked from catalinpit/list-rendering.vue
Created May 24, 2021 13:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SitePointEditors/e9b87fbac4fc134755b505b33b05ef57 to your computer and use it in GitHub Desktop.
Save SitePointEditors/e9b87fbac4fc134755b505b33b05ef57 to your computer and use it in GitHub Desktop.
<template>
<h1>{{ title }}</h1>
<ul>
<li v-for="task in tasks" :key="task.id">
{{task.id}}. {{ task.name }}
</li>
</ul>
</template>
<script>
export default {
data() {
return {
title: 'My To Do App',
tasks: [
{ id: 1, name: 'Learn Vue JS', finished: false },
{ id: 2, name: 'Build a Vue application', finished: false },
{ id: 3, name: 'Write an article about Vue JS', finished: false }
]
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment