官术网_书友最值得收藏!

Templates

Templates can be thought of as a representation of a component that is visualized according to the UI/UX needs of an application. A component will have a template associated with it. The template is responsible for displaying and updating data according to user events:

Here is a simple template that displays the title and author of a book:

<h1>Book Details</h1> 
<p>Title of the Book: {{title}}</p> 
<p>Author Name : {{author}}</p> 

Here, the title and author values wrapped in curly braces will be supplied by the associated component instance.

We will discuss templates and their syntax in detail in Chapter 8, Template and Data Binding Syntax.

主站蜘蛛池模板: 来安县| 土默特右旗| 南溪县| 辽阳市| 东乡县| 沾化县| 庐江县| 荣成市| 巴彦淖尔市| 丰县| 澎湖县| 曲靖市| 乌审旗| 九龙城区| 荔波县| 双桥区| 阜平县| 合作市| 九江市| 库尔勒市| 邛崃市| 探索| 弥勒县| 莱阳市| 师宗县| 花莲县| 深泽县| 建始县| 曲沃县| 九江市| 高安市| 日喀则市| 昌乐县| 石屏县| 两当县| 南和县| 东阳市| 全州县| 南溪县| 大方县| 隆德县|