Conditional Rendering

The directive v-if is used to conditionally render a block. The block will only be rendered if the directive’s expression returns a truthy value.

Visit the following resources to learn more: