title: function not working when put inside Vue methods
body: <p>I have a function that goes to my api file get a list of users from /users that is loaded through springboot from my database.</p>
  <pre><code> created() {
              api.getUsers().then(response =&gt; {
                  console.log(response)
                  this.retrievedUser = response.data;
                  this.showRetrievedUser = true
              })
          }
  </code></pre>
  <p>The above gets all the data and displays it within table, however if I put it into methods{} it doesn't work.</p>
  <pre><code>  methods: {
              created() {
                  api.getUsers().then(response =&gt; {
                      console.log(response)
                      this.retrievedUser = response.data;
                      this.showRetrievedUser = true
                  })
              }
          }
      }
  </code></pre>
  <p>What exactly is the reason for this? I've looked at other examples that do very similar thing to what I'm doing, and they're calling the functions within method field.</p>