I have been defining methods this way in my Vue app:
methods: {
myMethod(arg) {
// do stuff
}
}
This is the way you typically see it:
methods: {
myMethod: function (arg) {
// do stuff
}
}
My way looks a little cleaner, and both ways to work fine, but am I committing a great JS sin here? Will this come back to bite me somehow?