I've seen some people use
created: function() {
// code
}
and also
created () {
// code
}
and then a warning in the Vue docs to not do this
created: () => {
// code
}
I understand that the first one is the usual way of writing functions, and the last one is the new es6 arrow functions which bind the 'this' keyword to scope. But what is the middle one? It looks like a mix of both. What're the implications of using that?
functionbefore the second one, as infunction created () { // code }? As written, it's invalid syntax unless it's in a class (h/t @charlietfl, who pointed this out first).