© Adam Freeman 2018
Adam FreemanPro Vue.js 2https://doi.org/10.1007/978-1-4842-3805-9_12

12. Using the Basic Directives

Adam Freeman1 
(1)
London, UK
 
Directives are special attributes that apply Vue.js functionality to HTML elements in a component’s template. In this chapter, I explain how to use the basic built-in directives that Vue.js provides, which provide some of the most commonly required features in web application development. In Chapters 1315, I describe more complex directives, and in Chapter 26, I explain how to create custom directives when the built-in ones don’t provide the features you require. Table 12-1 puts the built-in directives in context.
Table 12-1

Putting the Built-in Directives in Context

Question

Answer

What are they?

The built-in ...

Get Pro Vue.js 2 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.