title: How to access "this" from within an anonymous function within Vuejs
body: <p>I'm trying to fire an event after a few seconds, so i have decided to go with Javascript's setInterval method. This is happening inside one of my methods attached to the Vue instance. The problem i'm facing is that I can't update the model from the setInterval method. The following is my code:</p>
  
  <pre><code>new Vue({
        el: 'body',
        data: {
          feedback: '',
        },
        methods: {
          giveFeedback: function () {
            setTimeout(function(){
              this.feedback = "changed";
            }, 3000);
          }
        }
      });
  </code></pre>