Add Post view displaying passed id
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
<template>
|
||||||
|
<div id="Post">
|
||||||
|
<br>
|
||||||
|
Read other <a href="/posts">posts</a>
|
||||||
|
<br>
|
||||||
|
The id of the post is: {{ id }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "Post",
|
||||||
|
props: {
|
||||||
|
id: {
|
||||||
|
type: String,
|
||||||
|
name: "id",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped></style>
|
||||||
Reference in New Issue
Block a user