+ 1
var vm = new Vue({ }) OR new Vue({ }) ??
And what's the difference ? cuz both seems to work fine.. just curious.
2 Answers
+ 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.
Hot today
Тренажер кода
1 Votes
Sololearn Bugged??
1 Votes
help my code does not iterate
0 Votes
How to install and update ?
0 Votes
What's wrong with this??
0 Votes