-
-
Save uno-de-piera/56ecf63f5dc7fef8ad0cbc60a32b6b74 to your computer and use it in GitHub Desktop.
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
<template> | |
<div> | |
<div class="card" style="width: 18rem;"> | |
<div class="card-body"> | |
<h5 class="card-title">{{ post.title }} - {{ $parent.category }}</h5> | |
<p class="card-text">{{ post.body }}</p> | |
<a href="/posts" class="btn btn-primary">Go back</a> | |
</div> | |
</div> | |
</div> | |
</template> | |
<script> | |
export default { | |
name: 'post-component', | |
props: { | |
post: { | |
type: Object | |
} | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment