title: Vue.js: _this is not defined at eval -- Java Spring backend json request
body: <p>Vue.js:</p>
  
  <pre><code>created() {
          axios.get('/people')
              .then((response) =&gt; {
                  this.people = response._embedded.data.people
              })
              .catch((error) =&gt; {
                  console.log(error)
              })
      },
  </code></pre>
  
  <p>GET request response according to chrome network: <a href="https://pastebin.com/bDmKQFgB" rel="nofollow noreferrer">https://pastebin.com/bDmKQFgB</a></p>
  
  <p>Console log:</p>
  
  <pre><code>error
  App.vue?234e:298 ReferenceError: _this is not defined
  at eval (App.vue?234e:294)
  </code></pre>
  
  <p>The second line comes from the catch() part.</p>
  
  <p>Where the json comes from: Java Spring Backend with mongodb like: <a href="https://spring.io/guides/gs/accessing-mongodb-data-rest/" rel="nofollow noreferrer">https://spring.io/guides/gs/accessing-mongodb-data-rest/</a></p>