Control the visibility of elements dynamically.
1The v-if Directive
v-if is a directive used to conditionally render a block. The block will only be rendered if the directive's expression returns a truthy value. If it returns false, Vue completely removes the element and its children from the Document Object Model (DOM).
2v-else and v-else-if
You can use v-else to indicate an 'else block' for v-if. A v-else element must immediately follow a v-if or a v-else-if element - otherwise it will not be recognized.
3v-show vs v-if
v-show is another option. The difference is that an element with v-show will always be rendered and remain in the DOM; v-show simply toggles the display CSS property of the element. Use v-show if you need to toggle something very frequently.
