Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h2>{{ title }}</h2>
- <hr>
- <br>
- <input type="text" v-model="comment" placeholder="Comment Here.">
- <input type="text" v-model="username" placeholder="username">
- <br>
- <button @click="setComments()">Kirim</button>
- <br>
- <hr>
- <ul>
- <li v-for="(comment, index) in comments">
- {{ comment.body }} by
- <span class="text-secondary">
- {{ comment.username }}</span>
- <a @click="removeComment(comment.id, index)">Remove</a>
- </li>
- </ul>
Add Comment
Please, Sign In to add comment