FAQ
This FAQ aims to answer some of the most common programming questions that we get on the Vue Land Discord server.
It is not a substitute for the official Vue documentation, available at https://vuejs.org/. Those docs include an FAQ for Vue itself at https://vuejs.org/about/faq.html.
Work in progress
Only about half the questions have complete answers. Those questions are listed in the sidebar on the left. The other questions are just stubs.
- Which Vue component library should I use?
- What folder structure should I use for my Vue project?
- Can I use Nuxt features without using Nuxt?
- Do Vue 2 components work with Vue 3?
- I need users to stay logged in if they refresh the page. Should I use cookies or local storage?
- Why is there a
#
before my route path? - Why does my page fail to load when I refresh in production?
- Why do I get a blank page in production?
- How do I deploy to GitHub Pages?
- How do I add dynamic
<meta>
tags to my application?
- How should my components communicate?
- How do I call a method in a child component?
- Why are my template refs not working?
- How can I share state with a composable?
- How can I pass all slots through to a child component?
- How can I make Vue 'wait' for the data before rendering?
- Why isn't
v-html
rendering my components? - Can I create a local variable in my template?
- Can I use JavaScript classes for my reactive data?
- Why does selecting one item select them all?
- How do I create unique element ids with Vue?
- Why can't I use the current route in
App.vue
?
- Why does my logging show an empty/missing value after I've loaded the data?
- Why can I see my data in console logging, but if I try to access it in my code I get
undefined
or an error?