[Vuejs]-How does refrence work $ref , x-template? attaching a common component to child components

0👍

Don’t worry about the database size yet. 6000 rows may sound like a lot, but in reality it is a really small amount for a database. Most likely you won’t encounter any performance problems at this scale and performance problems are best solved when you encounter them.

Your other question is a bit unclear what you are asking. Likely you will have something like a component that includes all the posts on the page and then a separate post component. When the user wants to view all comments you’ll just send an Ajax request to the server, get an array of the comments and pass them to the post component inside v-for.

Leave a comment