Question 1
Which of the following statements is true regarding “v-if” and “v-show” directives in VueJS?
The “v-if” directive adds/removes elements from the DOM, while v-show only toggles visibility using CSS.
The “v-show” directive adds/removes elements from the DOM, while v-if only toggles visibility using CSS.
Both the “v-if” and “v-show” directives add/remove elements from the DOM.
Both the “v-if” and “v-show” directives toggle visibility using CSS.
