Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- <div>
- <div v-for="reply in items">
- <!--<div v-for="(reply, index) in items">-->
- <!--<reply :data="reply" @deleted="remove(index)"></reply>-->
- <reply :data="reply"></reply>
- </div>
- </div>
- </template>
- <script>
- import Reply from './Reply.vue';
- export default {
- props: ['data'],
- components: { Reply },
- data() {
- return {
- items: this.data
- }
- },
- methods: {
- remove(index) {
- this.items.splice(index, 1);
- flash('Reactie is verwijderd')
- }
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement