Skip to content

Instantly share code, notes, and snippets.

@jsdecena
Created August 31, 2019 03:02
Show Gist options
  • Save jsdecena/02eb15b0b61bf21865b4b117388eda36 to your computer and use it in GitHub Desktop.
Save jsdecena/02eb15b0b61bf21865b4b117388eda36 to your computer and use it in GitHub Desktop.
Dynamic posts in table html
<div class="table-responsive">
<table class="table table-striped table-sm">
<thead>
<tr>
<th>#</th>
<th>Title</th>
<th>Body</th>
</tr>
</thead>
<tbody>
<tr v-for="(post, i) in posts" :key="i">
<td>{{post.id}}</td>
<td>{{post.title}}</td>
<td>{{post.body}}</td>
</tr>
</tbody>
</table>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment