07 - development setup/vue-cli-01-a-new-vue-project/src/components/FriendContact.vue | ●●●●● patch | view | raw | blame | history |
07 - development setup/vue-cli-01-a-new-vue-project/src/components/FriendContact.vue
@@ -49,7 +49,16 @@ // } }, }, emits:['toggle-favorite'], // emits: { // 'toggle-favorite': function (id) { // if (id) { // return true; // } else { // return false; // } // } // }, data() { return { detailsAreVisible: false, @@ -60,7 +69,6 @@ this.detailsAreVisible = !this.detailsAreVisible; }, toggleFavorite() { // this.friendIsFavorite = !this.friendIsFavorite; this.$emit('toggle-favorite', this.id); }, },