v-if,v-else, and v-else-if: Render content conditionally. This will remove and add content in the DOM.
v-show: This will make content visible and invisible by setting the display to none or block (use for things that get toggled a lot). it’s a lighter visibility switch than v-if/else. tutorial that compares v-if to v-show
Use Cases
to display content conditionally
show the user specific info depending on the situation
error handling
accomodating variations in layout
Activity: Set content to show conditionally
Set a boolean value in the script
use v-if and v-else to make the content disappear and reappear
Event Directive
v-on for handling events and functions (use this for things like your hamburger menu)