Vue 3 · Components
Render conditionally
Add or remove an element depending on a condition.
<p v-if="loading">Loading...</p>
<p v-else>Done</p>
Vue 3 · Components
Add or remove an element depending on a condition.
<p v-if="loading">Loading...</p>
<p v-else>Done</p>
Was this page helpful?