Skip to content

Commit

Permalink
Simple (#2)
Browse files Browse the repository at this point in the history
* Create TodoItems.vue

* Update TodoItems.vue

* Update Todos.vue
  • Loading branch information
derek-hoogewerf authored Jul 9, 2020
1 parent 42e2df6 commit b5d6a59
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
33 changes: 33 additions & 0 deletions src/components/TodoItems.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<template>
<div>
<p>To do Item</p>
</div>
</template>
<script>
export default {
name: "Todo Items",
props: ["todo"]
}
</script>

<style scoped>
.todo-item {
background-color: antiquewhite;
padding: 10px;
border-bottom: 1px #ccc dotted;
}
.is-complete {
text-decoration: line-through;
}
.del {
background-color: coral;
color: #fff;
border: none;
padding: 5px 9px;
border-radius: 50%;
cursor: pointer;
float: right;
}
</style>
8 changes: 6 additions & 2 deletions src/components/Todos.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
<template>
<div>
<div>
</div>
<div v-bind:key="todo.id" v-for="todo in todos"> </div>
<TodotItems v-bind:todo="todos"/>
</div>
</template>

<script>
import TodoItems from './TodoItems.vue'
export default {
name: "Todos",
components: {
TodoItems
},
props: ["todos"]
}
</script>
Expand Down

0 comments on commit b5d6a59

Please sign in to comment.