You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/faq/index.md
+40-17Lines changed: 40 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,42 @@
1
+
<scriptsetup>
2
+
import { h, resolveComponent } from'vue'
3
+
constBadge=resolveComponent('Badge')
4
+
constStub= () =>h(
5
+
Badge,
6
+
{
7
+
text:'stub',
8
+
title:'Stub: The answer to this question is currently incomplete',
9
+
type:'warning'
10
+
}
11
+
)
12
+
</script>
13
+
1
14
# FAQ
2
15
3
16
This FAQ aims to answer some of the most common programming questions that we get on the [Vue Land Discord server](https://chat.vuejs.org/).
4
17
5
18
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>.
6
19
7
20
::: warning Work in progress
8
-
Only about half the questions have complete answers. Those questions are listed in the sidebar on the left. The other questions are just stubs.
21
+
Only about half the questions have complete answers. Those questions are listed in the sidebar on the left. The other answers are just stubs.
9
22
:::
10
23
11
24
---
12
25
13
26
<!-- Learning -->
14
27
15
28
-[How should I learn Vue?](learning-vue)
16
-
-[Can you show me a large, open-source Vue project that I can study?](large-example-applications)
29
+
-[Can you show me a large, open-source Vue project that I can study?](large-example-applications){.stub} <Stub />
17
30
18
31
---
19
32
20
33
<!-- New project decisions -->
21
34
22
35
-[Which Vue component library should I use?](component-library)
23
36
-[What folder structure should I use for my Vue project?](folder-structure)
24
-
-[Can I use Nuxt features without using Nuxt?](nuxt-features)
37
+
-[Can I use Nuxt features without using Nuxt?](nuxt-features){.stub} <Stub />
25
38
-[Do Vue 2 components work with Vue 3?](vue-2-components-in-vue-3)
26
-
-[I need users to stay logged in if they refresh the page. Should I use cookies or local storage?](cookies-local-storage)
39
+
-[I need users to stay logged in if they refresh the page. Should I use cookies or local storage?](cookies-local-storage){.stub} <Stub />
27
40
28
41
---
29
42
@@ -46,16 +59,16 @@ Only about half the questions have complete answers. Those questions are listed
46
59
47
60
<!-- Vue code patterns -->
48
61
49
-
-[How should my components communicate?](component-communication)
50
-
-[How do I call a method in a child component?](invoking-child-methods)
51
-
-[Why are my template refs not working?](template-refs)
52
-
-[How can I share state with a composable?](sharing-state)
62
+
-[How should my components communicate?](component-communication){.stub} <Stub />
63
+
-[How do I call a method in a child component?](invoking-child-methods){.stub} <Stub />
64
+
-[Why are my template refs not working?](template-refs){.stub} <Stub />
65
+
-[How can I share state with a composable?](sharing-state){.stub} <Stub />
53
66
-[How can I pass all slots through to a child component?](forwarding-slots)
54
-
-[How can I make Vue 'wait' for the data before rendering?](delaying-rendering)
55
-
-[Why isn't `v-html` rendering my components?](components-in-v-html)
67
+
-[How can I make Vue 'wait' for the data before rendering?](delaying-rendering){.stub} <Stub />
68
+
-[Why isn't `v-html` rendering my components?](components-in-v-html){.stub} <Stub />
56
69
-[Can I create a local variable in my template?](template-local-variables)
57
-
-[Can I use JavaScript classes for my reactive data?](reactivity-and-classes)
58
-
-[Why does selecting one item select them all?](independent-selections)
70
+
-[Can I use JavaScript classes for my reactive data?](reactivity-and-classes){.stub} <Stub />
71
+
-[Why does selecting one item select them all?](independent-selections){.stub} <Stub />
59
72
-[How do I create unique element ids with Vue?](unique-element-ids)
60
73
-[Why can't I use the current route in `App.vue`?](accessing-the-route)
61
74
@@ -69,20 +82,30 @@ Only about half the questions have complete answers. Those questions are listed
69
82
70
83
<!-- Debugging -->
71
84
72
-
-[Why does my logging show an empty/missing value after I've loaded the data?](logging-after-loading)
73
-
-[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?](logging-is-live)
85
+
-[Why does my logging show an empty/missing value after I've loaded the data?](logging-after-loading){.stub} <Stub />
86
+
-[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?](logging-is-live){.stub} <Stub />
74
87
-[Why is my `FormData` empty?](empty-formdata)
75
88
76
89
---
77
90
78
91
<!-- Common Vue misunderstandings -->
79
92
80
-
-[When to use `reactive()` and `ref()`?](reactive-ref)
81
-
-[Why are the new value and old value the same in my watcher?](deep-watcher-values)
93
+
-[When to use `reactive()` and `ref()`?](reactive-ref){.stub} <Stub />
94
+
-[Why are the new value and old value the same in my watcher?](deep-watcher-values){.stub} <Stub />
82
95
83
96
---
84
97
85
98
<!-- Common tooling problems -->
86
99
87
-
-[Why do my dynamic images not work?](dynamic-images)
100
+
-[Why do my dynamic images not work?](dynamic-images){.stub} <Stub />
88
101
-[Why are my dynamic Tailwind classes not working?](missing-tailwind-classes)
0 commit comments