This repository has been archived by the owner on Oct 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zarahzachz
committed
Nov 8, 2018
1 parent
a5ffc01
commit 0b9d20e
Showing
40 changed files
with
44 additions
and
16,245 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,49 @@ | ||
<template> | ||
<div>Todo App here</div> | ||
<div> | ||
<todo-list v-bind:todos="todos"></todo-list> | ||
<create-todo v-on:create-todo="addTodo"></create-todo> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import TodoList from './todo-components/TodoList'; | ||
import CreateTodo from './todo-components/CreateTodo'; | ||
export default { | ||
name: 'TodoApp', | ||
components: { | ||
TodoList, | ||
CreateTodo, | ||
}, | ||
data() { | ||
return { | ||
todos: [{ | ||
title: 'Todo A', | ||
project: 'Project A', | ||
done: false, | ||
}, { | ||
title: 'Todo B', | ||
project: 'Project B', | ||
done: true, | ||
}, { | ||
title: 'Todo C', | ||
project: 'Project C', | ||
done: false, | ||
}, { | ||
title: 'Todo D', | ||
project: 'Project D', | ||
done: false, | ||
}], | ||
}; | ||
}, | ||
methods: { | ||
addTodo(newTodo) { | ||
this.todos.push(newTodo); | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
</style> | ||
|
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
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.