Replies: 1 comment
-
is this for petite-vue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working with Django and Vuejs 3 by using CDN (vue.global.js) but I changed it to (vue.esm-browser.js) to enable me making an( import from ) my code is to make (vuejs.html) for every " form " or page because my business logic is large and I need the Django Jinja template so I don't use vuejs component , I'm using the power of jinja language by using ({% include 'my_path_to/vuejs.html' %}) to include files inside each other. So I have many instances of vuejs this is my code of two instances.
And my question is how to pass variables from instance 1 to instance 2 or between instances in general
As you can see I'm trying to use (provide & inject) as DOCS stated, Also I tried
myAppInstance.config..config.globalProperties.$MYGLOBALVARIABLE = "anything"
But I am failed
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)
Any ideas or suggestions
Beta Was this translation helpful? Give feedback.
All reactions