Vue
Introduction to Vue.js: Directives
  •  

V-If

PRO
Outline

V-IF is used primarily for conditional rendering in your application.

With v-if, we ensure that event listeners and child components are destroyed during a toggle, and then subsequently rebuilt.

Also, with v-if, the conditional block won’t be displayed until the truthy condition is met for the first time

To view the example demo for this video, feel free to look at the codesandbox here: https://codesandbox.io/s/directives-intro-b2lfk by looking at MarksComponent.vue

 

I finished! On to the next chapter