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

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.

主站蜘蛛池模板: 江永县| 石首市| 仁化县| 辛集市| 江达县| 金秀| 和林格尔县| 龙江县| 七台河市| 平陆县| 关岭| 中宁县| 新化县| 中牟县| 临西县| 特克斯县| 韶关市| 城市| 龙山县| 尚义县| 神农架林区| 蒙城县| 海安县| 莱西市| 安宁市| 临汾市| 宿迁市| 绥化市| 烟台市| 武城县| 万山特区| 特克斯县| 吉木乃县| 化德县| 辽宁省| 潜山县| 大安市| 县级市| 新和县| 久治县| 瓮安县|