title: Cannot read property 'post' of undefined vue
body: <p>Thanks for reading my question.</p>
  
  <p>I have read about my problem</p>
  
  <p><a href="https://stackoverflow.com/questions/40999766/vue-js-2-webpack-cannot-read-property-get-of-undefined-vue-resource">VUE JS 2 + WEBPACK Cannot read property &#39;get&#39; of undefined VUE RESOURCE</a></p>
  
  <p>But my system no read Vue var :(</p>
  
  <p>I have a vue component calls app.vue and i need to use vue-resource to get data from my post. But the error a lot times is:</p>
  
  <pre><code>TypeError: Cannot read property 'post' of undefined
  at VueComponent.loadingProcess
  </code></pre>
  
  <p>Do u have ideas to solve it?</p>
  
  <p>My app.vue</p>
  
  <pre><code>&lt;script&gt;
      var Vue = require('vue');
      //Vue.use(require('vue-resource'));
      //Vue.use();
  
      export default {
            data () {
                  return {
                      msg: 'Hello from vue-loader! nice!',
                      user: {}
              }
      },
      mounted: function () {
          this.loadingProcess();
      },
      methods: {
          loadingProcess: function () {
  
              var urlPost;
              var answQSend = {...};
              var that = this;
  
              var jsonSend = {
                  "form_data": answQSend,
                  "prod_id": 3
              };
  
              Vue.$http.post(urlPost, jsonSend, {
                  "headers": {
                      "content-type": "application/json"
                  }
              })
              .then(function(response) {
  
              })
              ...
  </code></pre>
  
  <p>Thanks in advance!</p>