+ 1
var vm = new Vue({ }) OR new Vue({ }) ??
And what's the difference ? cuz both seems to work fine.. just curious.
2 Respuestas
+ 4
Use the second option. Unless you need to refer to the vue model outside the constructor
+ 1
Alright Ore, so second one is the good practice, understood.