Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Wombat102447y@sharktits I intuitively created an extra instance for my navigation, too. But still I can't get a reason why I shouldn't create an instance for every section of my page.
-
cursee165957yIf you are not going for single page app, nothing wrong with having multiple instances.
-
cursee165957y@Divisionbyzero IMO Vue is very modular. It's like a house. Vue instance is the building. Then you have your components like rooms, partitions. Each components can also have components like tables, chairs, beds. And you can move them around if you want. But for one single building/apartment, it should just be single house. If you wanna make two or three houses under same roof, it's possible but ugly.
So think you got enough with my metaphor skill. And here is probably better and more technical answer.
https://laracasts.com/discuss/...
Related Rants
-
skywatch16Son: Dad why is my sister named Rose? Dad: Because your Mom loves roses! Son: Thanks dad! Dad: No problem, vu...
-
v-vp18Googles best javascript framework. 1st link: react is the best one. Me: Ignore 2nd link: Angular is the best...
-
draylundy12!rant Vue.js, where have you been all my life? I think I love you.
import answer from "./knowledge.js"
const topic = 'Vue'
const rant = false
const allowDumbAnswers
const q = 'Why to use only a single Vue instance?'
allowDumbAnswers ? return : answer(q);
question
vue.js