Passing variables between vuejs3 instances #11306
-
I'm working with Django and Vuejs 3 by using CDN ( And my question is how to pass variables from instance 1 to instance 2 and vice versa or generally between vuejs instances. As you can see I'm trying to use (provide & inject) as DOCS stated, Also I tried INSTANCE 1
INSTANCE 2
I have tried many things as you can see in a commented code (I can't use global variables - I don't know why but it's not working at all) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi
|
Beta Was this translation helpful? Give feedback.
Hi
How to pass variables between two Vue.js3 instances? Do you need to keep their responsive?
But I am not sure which platform the code runs, and whether it is running on a browser. So the following content may not necessarily be helpful to you.
localStorage
orsessionStoreage
to set/get value , usesetInterval
to keep data in syncwindow
usually)