From f34e73eb8df7ca6a59c4e67c93f6ff96986b0911 Mon Sep 17 00:00:00 2001 From: Zhimin YE Date: Thu, 3 Nov 2016 18:12:44 +0000 Subject: [PATCH] Patch: template-syntax's new contents. --- public/docs/ts/latest/guide/template-syntax.jade | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/docs/ts/latest/guide/template-syntax.jade b/public/docs/ts/latest/guide/template-syntax.jade index c900d0c505..e05823f84a 100644 --- a/public/docs/ts/latest/guide/template-syntax.jade +++ b/public/docs/ts/latest/guide/template-syntax.jade @@ -1418,14 +1418,22 @@ block style-property-name-dart-diff .l-main-section :marked ## Two-way binding + + ## 双向数据绑定 + 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 and listening for an element change event. + + 在元素层面上,既要设置元素属性,又要监听元素事件变化。 Angular offers a special _two-way data binding_ syntax for this purpose, **`[(x)]`**. The `[(x)]` syntax combines the brackets of _Property Binding_, `[x]`, with the parentheses of _Event Binding_, `(x)`. + .callout.is-important header [( )] = banana in a box header [( )] = 盒子里的香蕉