PS: Make sure you check other Vue.js tutorials, e.g. text. You show to see the text on the screen changing depending upon the count value. Vue.js - The Progressive JavaScript Framework. Text … It is simple, minimal core with an incrementally adoptable stack that can handle apps of any scale. Vue.js provides us a set of conditional directives to achieve this effect. These Vue.js conditional directives are v-if, v-else, v-else-if and v-show. In the upcoming section we demonstrate how to use boolean breakpoint values in the template and script tags of Vue components. The important thing to note with the v-if and v-else directive is that it completely removes the element from the DOM instead of hiding it. Now let's compare the above with how we can achieve this toggle behavior in Vue: < template > < button @click = " toggle " > Click me button > < button @click = " toggle " > Click me button >