1.

Explain the difference between v-if and v-show directives in vue.js?

Answer»
S.noV-ifV-show
1.It is USED for UI element rendering.V-show is used to manage the display of a UI element.
2.V-if has else partDoesn’t support “no else” part.
3.Only RENDERS the elements that fulfill the condition.It renders all elements and optimally MANAGES with CSS “display” attribute.


Discussion

No Comment Found