Articles subject to registration
The JavaScript framework Vue.js, part 3 DOM manipulation with Vue directives
The third part of the Vue series is all about directives. These are special identifiers in the HTML code that make it possible to influence the creation of DOM elements using JavaScript expressions.
Related companies
In the API reference of Vue.js provides an overview of the directives.
(Picture: vuejs.org)
The description of a directive seems much more complicated than the topic really is. With directives it is possible, for example, to display dynamic content or to omit elements under certain conditions. Loops can also be easily realized with this.
If you come from the Java world, you may still know the JSP tags that served a similar purpose. Most Vue directives can be recognized by the prefix v-, but there are some abbreviations.
Log in or register and continue reading
To be able to read this article in full, you must be registered. The free registration gives you access to exclusive specialist information.
Create a free account