title: Nativescrit Vue - Can I access my Vue instance in my main.js?
body: <p>I am developping an app in nativescript + vue and I have an issue selecting the target page when the user resumes the app.
  In my main.js I have:</p>
  
  <pre class="lang-vue prettyprint-override"><code>new Vue({
    render: h =&gt; h('frame', [h(HomePage)])
  }).$start()
  </code></pre>
  
  <p>And what I would like to do is something like this:</p>
  
  <pre class="lang-vue prettyprint-override"><code>application.on("resume", () =&gt; {
       this.$navigateTo(SomeOtherPage)
  })
  </code></pre>
  
  <p>However, <code>this</code> is undefined here and I cannot navigate to my desired page when the app is resumed.</p>
  
  <p>I tried giving a name to my Vue like <code>const my_vue = new Vue({...})</code> and then call <code>my_vue.$navigateTo(...)</code> but <code>my_vue</code> is undefined as well.</p>
  
  <p>Is there any way to make this work or is this the wrong approach to achieve what I'm trying to do ?</p>