title: Vuejs method ajax call other method on component
body: <p>how to call another method inside jquery ajax?</p>
  <pre><code>methods : {
      calert(type,msg=&quot;&quot;,error=&quot;&quot;){
          console.log(&quot;call me&quot;);
      },
      getData(){
          $.ajax({
              type: &quot;GET&quot;,
              success: function(data){
                  // error calert not found
                  calert(true,&quot;&quot;,&quot;asd&quot;);
              },
              error: function (error) {
                  // also error calert not found
                  this.calert(false,&quot;&quot;,error);
              },
              complete: function(){
              },
              url: &quot;/test&quot;,
          });
      },
  }
  </code></pre>
  <p>i have try to using <code>this.calert</code> but it doesn't work, still error</p>