As I dive into tutorials and browse through code snippets while immersing myself in learning this framework, I've noticed a common trend - the use of var
for declarations. This practice seems prevalent across resources, including the official Vue documentation.
Full disclosure: I'm a beginner when it comes to Vue, so my understanding is limited, and I have yet to find a definitive answer.
Another point of contention arises with assumptions surrounding property names:
new Vue({
data: data
})
compared to
new Vue({
data
})
I can't help but wonder if my assumption that ES6's const
and let
should be the norm is misguided. Why stick with var
in Vue.js? Could there be compatibility issues with ES6?