From 3f437cf5acf4f17e349119a3286156dc3ecc351f Mon Sep 17 00:00:00 2001 From: Cristiano Magro <cristiano.magro@vola.it> Date: Mon, 30 Dec 2024 20:37:53 +0100 Subject: [PATCH] evito la duplicazione inutile dell'array --- 08 - component communication/cmp-communication-08-a-potential-problem-starting-setup/src/App.vue | 22 ++++------------------ 1 files changed, 4 insertions(+), 18 deletions(-) diff --git a/08 - component communication/cmp-communication-08-a-potential-problem-starting-setup/src/App.vue b/08 - component communication/cmp-communication-08-a-potential-problem-starting-setup/src/App.vue index e693be6..6b93aab 100644 --- a/08 - component communication/cmp-communication-08-a-potential-problem-starting-setup/src/App.vue +++ b/08 - component communication/cmp-communication-08-a-potential-problem-starting-setup/src/App.vue @@ -32,24 +32,10 @@ activeTopic: null, }; }, - provide:{ - topics: [ - { - id: 'basics', - title: 'The Basics', - description: 'Core Vue basics you have to know', - fullText: - 'Vue is a great framework and it has a couple of key concepts: Data binding, events, components and reactivity - that should tell you something!', - }, - { - id: 'components', - title: 'Components', - description: - 'Components are a core concept for building Vue UIs and apps', - fullText: - 'With components, you can split logic (and markup) into separate building blocks and then combine those building blocks (and re-use them) to build powerful user interfaces.', - }, - ], + provide(){ + return { + topics: this.topics + } }, methods: { activateTopic(topicId) { -- Gitblit v1.8.0