Patch: template-syntax's new contents.

This commit is contained in:
Zhimin YE 2016-11-03 18:12:44 +00:00
parent b1aae7f306
commit f34e73eb8d
1 changed files with 8 additions and 0 deletions

View File

@ -1418,14 +1418,22 @@ block style-property-name-dart-diff
.l-main-section .l-main-section
:marked :marked
## Two-way binding ## Two-way binding
## 双向数据绑定
We often want to both display a data property and update that property when the user makes changes. We often want to both display a data property and update that property when the user makes changes.
在用户作出更改时,我们经常要同时显示和更新数据属性。
On the element side that takes a combination of setting a specific element property On the element side that takes a combination of setting a specific element property
and listening for an element change event. and listening for an element change event.
在元素层面上,既要设置元素属性,又要监听元素事件变化。
Angular offers a special _two-way data binding_ syntax for this purpose, **`[(x)]`**. Angular offers a special _two-way data binding_ syntax for this purpose, **`[(x)]`**.
The `[(x)]` syntax combines the brackets The `[(x)]` syntax combines the brackets
of _Property Binding_, `[x]`, with the parentheses of _Event Binding_, `(x)`. of _Property Binding_, `[x]`, with the parentheses of _Event Binding_, `(x)`.
.callout.is-important .callout.is-important
header [( )] = banana in a box header [( )] = banana in a box
header [( )] = 盒子里的香蕉 header [( )] = 盒子里的香蕉