title: TypeError: Cannot read property 'post' of undefined using vue.js and axios
body: <p>I am trying to pass data via an axios' post in a vue method and getting the error:</p>
  
  <blockquote>
    <p>"signinVue.js:60 Uncaught TypeError: Cannot read property 'post' of undefined"</p>
  </blockquote>
  
  <p><strong>Vue script:</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>new Vue({
      el:'#app',
      data:{
          email:'',
          code:'',
      },
      methods:{
          signin:function(){
              console.log(this.email + ' ' + this.access);
              let url = '../App/testConnection.php';
              this.axios.post(url, {email:this.email, code:this.code})
                  .then((response) =&gt;{
                    console.log(response);
                  })
                  .catch(function (error) {
                      console.log(error);
                  });
                  //console.log(this.email + ' ' + this.access);
                  //alert(this.email);
          }
      }
  });
  </code></pre>