Question 15
A developer creates a Vue component using both v-if and v-show directives on different elements with initially false conditions. Later, the conditions are changed to true. What is the key difference in how these two directives handle the DOM?
v-if removes the element from DOM when false, v-show only changes CSS display property
v-show removes the element from DOM when false, v-if only changes CSS display property
Both v-if and v-show re-mount the element and re-run lifecycle hooks
Both directives are identical in their functionality; they just have different naming conventions