Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created May 25, 2018 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uno-de-piera/56ecf63f5dc7fef8ad0cbc60a32b6b74 to your computer and use it in GitHub Desktop.
Save uno-de-piera/56ecf63f5dc7fef8ad0cbc60a32b6b74 to your computer and use it in GitHub Desktop.
<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