Created
August 31, 2019 03:02
-
-
Save jsdecena/02eb15b0b61bf21865b4b117388eda36 to your computer and use it in GitHub Desktop.
Dynamic posts in table html
This file contains hidden or 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
<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