-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHome.vue
40 lines (35 loc) · 783 Bytes
/
Home.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<template>
<div>
<!-- PART 1: Pass in a "complete" prop here -->
<Instructions v-bind:complete="true"/>
<!-- PART 4: Modify the Show component to accept all of these props -->
<Show
v-for="show in shows"
:key="show.id"
:id="show.id"
:name="show.name"
:episodes_seen="show.episodes_seen"
/>
</div>
</template>
<script>
import Instructions from "./Instructions.vue";
import Show from "./Show.vue";
export default {
components: {
Instructions,
Show
},
data() {
return {
shows: [
{ id: 1, name: "Game of Thrones", episodes_seen: 0 },
{ id: 2, name: "Naruto", episodes_seen: 220 },
{ id: 3, name: "Black Mirror", episodes_seen: 3 }
]
};
}
};
</script>
<style>
</style>