© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
E. SarrionMaster Vue.js in 6 Dayshttps://doi.org/10.1007/979-8-8688-0364-2_2

2. Day 2: Mastering Directives in Vue.js

Eric Sarrion1  
(1)
VIRY CHATILLON, France
 

In this chapter, we will delve into directives in Vue.js, a key element for mastering this front-end library. Directives allow us to add new functionalities to HTML elements on the page.

We will explore several essential directives, such as v-bind, v-if, v-else, v-show, and v-for, providing detailed steps to understand how they function.

Next, we will focus on the v-model directive, which is particularly useful for two-way data binding in forms.

Finally, we will address the use of modifiers in Vue.js, ...

Get Master Vue.js in 6 Days: Become a Vue.js Expert in Under a Week now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.