1

I’ve just started to learn Vue.js and need help. I have two components, the first one is not a parent for the second.

I need to transfer a variable from one component to another. I’ve tried to use “props” - bad idea

Maybe someone knows how to avoid this “parent” restriction

Tolbxela
  • 4,767
  • 3
  • 21
  • 42
Alex Dalen
  • 149
  • 7
  • You can use a "Store" to share data reactively between components. For example [VueX Store](https://vuex.vuejs.org/guide/) – Peter Krebs Feb 10 '23 at 14:28

1 Answers1

1

At first be sure you have read and understood the Vue Docs about Components.

Check also

Here are some answers that could help you with examples:

Tolbxela
  • 4,767
  • 3
  • 21
  • 42