Skip to content

Instantly share code, notes, and snippets.

@slmanju
Created August 2, 2018 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slmanju/41d344065c2b949950332e1e96163a31 to your computer and use it in GitHub Desktop.
Save slmanju/41d344065c2b949950332e1e96163a31 to your computer and use it in GitHub Desktop.
<template>
<div id="app">
<div>
<h3>Todo List</h3>
<todo/>
<todo-list v-bind:todos="todos"></todo-list>
</div>
</div>
</template>
<script>
import Todo from './components/Todo.vue'
import TodoList from './components/TodoList.vue'
export default {
name: 'App',
components: {
Todo,
TodoList
},
data: function() {
return {
todos: [
'Todo A1',
'Todo B2',
'Todo C3'
]
}
}
}
</script>
<style>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment