title: undefined property in vue 2 basic test
body: <p>Hi i am trying to use Vue in a laravel app but i have some issues. 
  Basically i need to retrieve data from a get request and build some results based on it. 
  The problem is that i don't even get to correctly retrieve the data inside my array variable. I better explain</p>
  
  <p>in my app.js i load my vue instance</p>
  
  <pre><code>Vue.component('search', require('./components/search.vue'));
  
  const app = new Vue({
     el: '#app',
  });
  </code></pre>
  
  <p>in my main.blade.php i insert my vue component</p>
  
  <pre><code>&lt;search class="row expanded container"&gt;&lt;/search&gt;
  </code></pre>
  
  <p>this is my vue file</p>
  
  <pre><code>&lt;template&gt;
      &lt;div class="container"&gt;
          &lt;div class="row"&gt;
              &lt;div class="col-md-8 col-md-offset-2"&gt;
                  &lt;div class="panel panel-default"&gt;
                      &lt;div class="panel-heading"&gt;Example Conhenhmponent&lt;/div&gt;
  
                      &lt;div class="panel-body"&gt;
                          I'm an example component!
  
                          {{test}}
  
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  export default {
  
      data () {
          return {
              test:"this is my sample",
              results: []
          }
      },
  
      mounted () {
          console.log(this); // here my obj exists  
          console.log('Component mounted.') // it works
          axios.get("http://localhost:8000/api/search?q=qwfqw")
          .then(function(resp){
              if(typeof resp.data == 'string') {
                  resp.data = JSON.parse(resp.data);
              }
              console.log(resp.data); // here the object exists
              this.results = resp.data;
          });
      }
  }
  
  
  &lt;/script&gt;
  </code></pre>
  
  <p>The page loads but i get an error that says the results var is undefined.
  How can i fill my result var with the get data? what's the right way to do that? </p>