DEV Community

Discussion on: [VUE] How to access a variable from another instance

Collapse
 
martyhimmel profile image
Martin Himmel

If you're using multiple Vue instances, you can reference the instance data by instanceName.data.dataYouWant. Here's a quick example: jsfiddle.net/9uon0dwx/

Collapse
 
imrc21 profile image
IMRC21

This is mind blowing, thank you so much.
I Will try.

Collapse
 
imrc21 profile image
IMRC21

This works but I think I'll use the method adviced by fencina because I guess it's the best way.