Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit a8e284b

Browse files
committed
updated how componet handles prop data
1 parent d361bfd commit a8e284b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components/PostCard.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<template>
22
<div class="post-card">
3-
<span>Title: {{this.cardData.title}} </span>
4-
<span>Contents:{{this.cardData.contents}} </span>
5-
<!-- {{this.cardData}} -->
3+
<span>Title: {{this.cardData.data.title}} </span>
4+
<span>Contents:{{this.cardData.data.contents}} </span>
65
</div>
76
</template>
87

@@ -14,8 +13,6 @@ export default {
1413
type: Object,
1514
},
1615
},
17-
18-
1916
};
2017
2118
</script>
@@ -27,5 +24,4 @@ export default {
2724
border-style: solid;
2825
width:500px;
2926
}
30-
3127
</style>

0 commit comments

Comments
 (0)