From d2ef68bb50c2699f9ad6b23f3f788e2a8a378000 Mon Sep 17 00:00:00 2001 From: Jake Espinosa <50299748+jakeEspinosa@users.noreply.github.com> Date: Thu, 1 Aug 2024 04:44:34 -0700 Subject: [PATCH] feat: add content to v-show on vue roadmap (#6311) --- .../vue/content/v-show@_TlbGTKFCMO0wdLbC6xHX.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/data/roadmaps/vue/content/v-show@_TlbGTKFCMO0wdLbC6xHX.md b/src/data/roadmaps/vue/content/v-show@_TlbGTKFCMO0wdLbC6xHX.md index 57b1b013b..ccbad5bd4 100644 --- a/src/data/roadmaps/vue/content/v-show@_TlbGTKFCMO0wdLbC6xHX.md +++ b/src/data/roadmaps/vue/content/v-show@_TlbGTKFCMO0wdLbC6xHX.md @@ -1 +1,9 @@ -# v-show \ No newline at end of file +# v-show + +`v-show` is similar to `v-if` in that it allows you to conditionally render components. However, it does not remove the component from the DOM and merely toggles its `display` CSS property to be `hidden`. It also does not work with `v-else-if` oe `v-else`. + +Prefer `v-show` over `v-if` if the component's visibility needs to change often, and `v-if` if not. + +Visit the following resources to learn more: + +- [@official@Vue Conditional Rendering Docs](https://vuejs.org/guide/essentials/conditional.html#v-show)