title: set geolocation in data object after mounted vuejs
body: <p>I'm relatively new to VueJS scene. Recently I'm trying to work on my side project which requires to get User's Geolocation Data as soon as the main component had mounted. </p>
  
  <p>My code is here,</p>
  
  <pre><code>var app = new Vue({
    el: '#app', 
    data: {
      position: null
    },
    mounted: function() {
      if(navigator.geolocation){
         navigator.geolocation.getCurrentPosition(function(position){
          this.position = position.coords;
        })
      }
  
    }
  });
  </code></pre>
  
  <p>I wanted to set <code>position</code> in data object to current geolocation after mounted but unfortunately it isn't working. Is there anything I'm missing?</p>