Created
August 2, 2018 04:32
-
-
Save slmanju/41d344065c2b949950332e1e96163a31 to your computer and use it in GitHub Desktop.
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> | |
<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