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

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.

主站蜘蛛池模板: 原平市| 奈曼旗| 古丈县| 体育| 百色市| 双桥区| 金门县| 上饶县| 峡江县| 汕尾市| 西城区| 郎溪县| 陆良县| 灵石县| 那曲县| 子长县| 吴江市| 景泰县| 泸定县| 江源县| 马龙县| 汾阳市| 金堂县| 湖州市| 和政县| 徐汇区| 逊克县| 永平县| 山丹县| 瓦房店市| 靖安县| 辽阳县| 新干县| 城口县| 淄博市| 铜山县| 正阳县| 佛冈县| 临汾市| 孟州市| 雷波县|