I'm start learning Vue.js and ECMA6 syntax, I saw this in the tutorial:
methods: {
  someMethod: function() { 
    console.log(this) // this works
  }
} 
Then I thought the syntax could be:
methods: {
  someMethod: () => {
    console.log(this) // this undefined
  }
}
but this works:
methods: {
  someMethod () {
    console.log(this) // this works
  }
}
Can explain the difference and the ECMA5 syntax?
 
     
    