title: Sharing data between two vue files using variable defined in main js
body: <p>I have two separate vue files:- for example <code>1.vue</code> and <code>2.vue</code> and a main js file.</p>
  
  <p>I have a variable <code>xyz</code> under window.App data: method in main.js</p>
  
  <p>I want to access this variable as a share data variable how will I use it in my both the vue files. for example <code>1.vue</code> will put some data under this variable and <code>2.vue</code> will access this data.</p>