title: How to access App.vue from another component?
body: <p>in my app written with VueJs 2, I have into the Vue.app this code:</p>
  
  <pre><code>export default {
    name: 'app',
    data () {
      return {
        title: 'Gestione fornitori',
        idfornitore: ''
      }
    },
  
    methods: {
      loadFunction (route) {
        this.$router.push(route)
      }
    }
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I wish to access the property <code>idfornitore</code> from another component, I've used:</p>
  
  <pre><code>    mounted () {
        this.$parent.idfornitore = ''
      },
  </code></pre>
  
  <p>or also:</p>
  
  <pre><code>    mounted () {
        var Vue = require('vue')
        Vue.app.idfornitore = ''
      },
  </code></pre>
  
  <p>But it didn't worked. Which is the correct way to access the property from another component?</p>
  
  <p>Thank you in advance.</p>