From 1dc4e45a24b81004daf0fb123cd092a850a17475 Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Mon, 30 Dec 2024 20:35:33 +0100 Subject: [PATCH] inject object throw component --- 08 - component communication/cmp-communication-08-a-potential-problem-starting-setup/src/components/KnowledgeBase.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/08 - component communication/cmp-communication-08-a-potential-problem-starting-setup/src/components/KnowledgeBase.vue b/08 - component communication/cmp-communication-08-a-potential-problem-starting-setup/src/components/KnowledgeBase.vue index 30d2c0f..563e530 100644 --- a/08 - component communication/cmp-communication-08-a-potential-problem-starting-setup/src/components/KnowledgeBase.vue +++ b/08 - component communication/cmp-communication-08-a-potential-problem-starting-setup/src/components/KnowledgeBase.vue @@ -1,13 +1,13 @@ <template> <section> <h2>Select a Topic</h2> - <knowledge-grid :topics="topics" @select-topic="$emit('select-topic', $event)"></knowledge-grid> + <knowledge-grid @select-topic="$emit('select-topic', $event)"></knowledge-grid> </section> </template> <script> export default { - props: ['topics'], + emits: ['select-topic'], }; </script> \ No newline at end of file -- Gitblit v1.8.0