Vue TutorialLesson 17Free preview
Vue Templates
This lesson is part of Vue · All levels
Summary
Templates are the component parts that describe the display structure, and Vue provides several forms ranging from template strings to .vue files. In the template, the parentheses two display the data declaratively, and all expressions in it are restricted to be secure. Vue also provides a template-specific element as a container without a real DOM element.
Key points
- Templates define the display structure of a component.
- The interpolation syntax of the two-fold curve shows the value of the data declaratively.
- Only a single expression is allowed in an interpolation, not a full statement.
- The template element serves as a container without rendering the DOM element.
- Templates can be strings, inlines in HTML, or blocks in a file. (.vue)
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.