v-show
up:: Vue Directives
This shows and hides elements with CSS (display: none
) instead of removing them from the DOM (like v-if).
Rule of thumb
Use v-if usually. When a component toggles visibility often, use
v-show
.
Search
Jan 15, 2024
up:: Vue Directives
This shows and hides elements with CSS (display: none
) instead of removing them from the DOM (like v-if).
Rule of thumb
Use v-if usually. When a component toggles visibility often, use
v-show
.