In my project, I am working with two separate Vue files - let's say 1.vue
and 2.vue
- along with a main JS file.
Within my main.js file, there is a variable xyz
under the window.App data method.
I am looking to utilize this variable as a shared data variable that can be accessed by both of my Vue files. For example, 1.vue
will assign some data to this variable, and 2.vue
will be able to access this data.