title: calling a method from created hook in vuejs component
body: <p>I have a component with the following (partial) code:</p>
  
  <pre><code>export default {
  
    methods: {
      mymethod: (x) =&gt; {alert(x)},
    },
  
    created: () =&gt; {
      this.mymethod('success');
    },
  </code></pre>
  
  <p>and I am getting the following error:</p>
  
  <pre><code>vue.esm.js?efeb:578 [Vue warn]: Error in created hook: "TypeError: Cannot read property 'mymethod' of undefined"
  </code></pre>
  
  <p>It would seem like the "this" is not being evaluated to the component's vue instance. 
  And Ideas what could case this?</p>