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.
v-if
Visit the following resources to learn more: