mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-10 03:06:58 +02:00
feat: add content to v-show on vue roadmap (#6311)
This commit is contained in:
@@ -1 +1,9 @@
|
|||||||
# v-show
|
# 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)
|
||||||
|
Reference in New Issue
Block a user