diff --git a/aio/content/guide/ajs-quick-reference.md b/aio/content/guide/ajs-quick-reference.md index 25602fc2e6..8fa09adaea 100644 --- a/aio/content/guide/ajs-quick-reference.md +++ b/aio/content/guide/ajs-quick-reference.md @@ -59,7 +59,7 @@ The following table lists some of the key AngularJS template features with their ### Bindings/interpolation - ### 绑定/插值表达式 + ### 绑定/插值 Your favorite hero is: {{vm.favoriteHero}} @@ -84,7 +84,7 @@ The following table lists some of the key AngularJS template features with their ### Bindings/interpolation - ### 绑定/插值表达式 + ### 绑定/插值 @@ -101,7 +101,7 @@ The following table lists some of the key AngularJS template features with their For more information, see the [Interpolation](guide/template-syntax#interpolation) section of the [Template Syntax](guide/template-syntax) page. - 要了解更多,请参见[模板语法](guide/template-syntax)中的[插值表达式](guide/template-syntax#interpolation)部分。 + 要了解更多,请参见[模板语法](guide/template-syntax)中的[插值](guide/template-syntax#interpolation)部分。 diff --git a/aio/content/guide/aot-compiler.md b/aio/content/guide/aot-compiler.md index 1cb355657d..ee4f5ed15c 100644 --- a/aio/content/guide/aot-compiler.md +++ b/aio/content/guide/aot-compiler.md @@ -1464,7 +1464,7 @@ template compiler, the same way the `if` expression does in TypeScript. For exam interpolation if the value of `person` is initialized as shown below: 在 `ngIf` 指令中使用的表达式用来在 Angular 模板编译器中窄化联合类型,就像 TypeScript 中的 `if` 表达式一样。 -比如,要在上述模板中消除 `Object is possibly 'undefined'` 错误,可以把它改成只在 `person` 的值初始化过的时候才生成这个插值表达式。 +比如,要在上述模板中消除 `Object is possibly 'undefined'` 错误,可以把它改成只在 `person` 的值初始化过的时候才生成这个插值。 ```typescript diff --git a/aio/content/guide/architecture-components.md b/aio/content/guide/architecture-components.md index 8c75c5614c..6e9dd1b4bc 100644 --- a/aio/content/guide/architecture-components.md +++ b/aio/content/guide/architecture-components.md @@ -178,7 +178,7 @@ This example from the `HeroListComponent` template uses three of these forms. * The `{{hero.name}}` [*interpolation*](guide/displaying-data#interpolation) displays the component's `hero.name` property value within the `
  • ` element. - `{{hero.name}}`[*插值表达式*](guide/displaying-data#interpolation)在 `
  • ` 标签中显示组件的 `hero.name` 属性的值。 + `{{hero.name}}`这个[*插值*](guide/displaying-data#interpolation)在 `
  • ` 标签中显示组件的 `hero.name` 属性的值。 * The `[hero]` [*property binding*](guide/template-syntax#property-binding) passes the value of `selectedHero` from the parent `HeroListComponent` to the `hero` property of the child `HeroDetailComponent`. diff --git a/aio/content/guide/component-interaction.md b/aio/content/guide/component-interaction.md index e7b23f84e9..d35b9848d1 100644 --- a/aio/content/guide/component-interaction.md +++ b/aio/content/guide/component-interaction.md @@ -311,7 +311,7 @@ That gives you a reference to the child component and the ability to access This example wires parent buttons to the child's `start` and `stop` and uses interpolation to display the child's `seconds` property. -这个例子把父组件的按钮绑定到子组件的 `start` 和 `stop` 方法,并用插值表达式来显示子组件的 `seconds` 属性。 +这个例子把父组件的按钮绑定到子组件的 `start` 和 `stop` 方法,并用插值来显示子组件的 `seconds` 属性。 Here we see the parent and child working together. @@ -405,7 +405,7 @@ The `#timer` local variable is gone from the component metadata. Instead, bind the buttons to the parent component's own `start` and `stop` methods and present the ticking seconds in an interpolation around the parent component's `seconds` method. -组件元数据里就不再需要 `#timer` 本地变量了。而是把按钮绑定到父组件自己的 `start` 和 `stop` 方法,使用父组件的 `seconds` 方法的插值表达式来展示秒数变化。 +组件元数据里就不再需要 `#timer` 本地变量了。而是把按钮绑定到父组件自己的 `start` 和 `stop` 方法,使用父组件的 `seconds` 方法的插值来展示秒数变化。 These methods access the injected timer component directly. diff --git a/aio/content/guide/displaying-data.md b/aio/content/guide/displaying-data.md index 059c42dd26..39300ca512 100644 --- a/aio/content/guide/displaying-data.md +++ b/aio/content/guide/displaying-data.md @@ -34,14 +34,14 @@ snippets described in this page. ## Showing component properties with interpolation -## 使用插值表达式显示组件属性 +## 使用插值显示组件属性 The easiest way to display a component property is to bind the property name through interpolation. With interpolation, you put the property name in the view template, enclosed in double curly braces: `{{myHero}}`. -要显示组件的属性,最简单的方式就是通过插值表达式 (interpolation) 来绑定属性名。 -要使用插值表达式,就把属性名包裹在双花括号里放进视图模板,如 `{{myHero}}`。 +要显示组件的属性,最简单的方式就是通过插值 (interpolation) 来绑定属性名。 +要使用插值,就把属性名包裹在双花括号里放进视图模板,如 `{{myHero}}`。 Use the CLI command [`ng new displaying-data`](cli/new) to create a workspace and app named `displaying-data`. @@ -69,7 +69,7 @@ You added two properties to the formerly empty component: `title` and `myHero`. The template displays the two component properties using double curly brace interpolation: -修改完的模板会使用双花括号形式的插值表达式来显示这两个模板属性: +修改完的模板会使用双花括号形式的插值来显示这两个模板属性: @@ -237,7 +237,7 @@ to the item (the hero) in the current iteration. Angular uses that variable as t context for the interpolation in the double curly braces. Angular 为列表中的每个条目复制一个 `
  • ` 元素,在每个迭代中,把 `hero` 变量设置为当前条目(英雄)。 -Angular 把 `hero` 变量作为双花括号插值表达式的上下文。 +Angular 把 `hero` 变量作为双花括号插值的上下文。
    @@ -418,7 +418,7 @@ Now you know how to use: * **Interpolation** with double curly braces to display a component property. - 带有双花括号的**插值表达式 (interpolation) **来显示一个组件属性。 + 带有双花括号的**插值 (interpolation) **来显示一个组件属性。 * **ngFor** to display an array of items. diff --git a/aio/content/guide/forms.md b/aio/content/guide/forms.md index a1c383ef18..66f77ba5ff 100644 --- a/aio/content/guide/forms.md +++ b/aio/content/guide/forms.md @@ -464,7 +464,7 @@ The `pow` template input variable is a different power in each iteration; you display its name using the interpolation syntax. 列表中的每一项超能力都会渲染成 `
    @@ -1130,7 +1130,7 @@ Add the following HTML below the `
    ` wrapper you just wrote: There's the hero again, displayed read-only with interpolation bindings. This `
    ` appears only while the component is in the submitted state. -英雄又出现了,它通过插值表达式绑定显示为只读内容。 +英雄又出现了,它通过插值绑定显示为只读内容。 这一小段 HTML 只在组件处于已提交状态时才会显示。 The HTML includes an *Edit* button whose click event is bound to an expression diff --git a/aio/content/guide/glossary.md b/aio/content/guide/glossary.md index f7122482df..a33d0c01c9 100644 --- a/aio/content/guide/glossary.md +++ b/aio/content/guide/glossary.md @@ -430,7 +430,7 @@ Read about the following forms of binding in [Template Syntax](guide/template-sy * [Interpolation](guide/template-syntax#interpolation) - [插值表达式](guide/template-syntax#interpolation) + [插值](guide/template-syntax#interpolation) * [Property binding](guide/template-syntax#property-binding) @@ -815,7 +815,7 @@ To learn more, see [input and output properties](guide/template-syntax#inputs-ou ## interpolation -## 插值表达式 (interpolation) +## 插值 (interpolation) A form of property [data binding](#data-binding) in which a [template expression](#template-expression) between double-curly braces renders as text. That text can be concatenated with neighboring text before it is assigned to an element property @@ -831,7 +831,7 @@ or displayed between element tags, as in this example. Read more about [interpolation](guide/template-syntax#interpolation) in [Template Syntax](guide/template-syntax). -更多信息,见[模板语法](guide/template-syntax)中的[插值表达式](guide/template-syntax#interpolation)。 +更多信息,见[模板语法](guide/template-syntax)中的[插值](guide/template-syntax#interpolation)。 {@a ivy} diff --git a/aio/content/guide/i18n.md b/aio/content/guide/i18n.md index 70f663543e..b06be0f171 100644 --- a/aio/content/guide/i18n.md +++ b/aio/content/guide/i18n.md @@ -602,7 +602,7 @@ for two, three, or any other number if the pluralization rules were different. F You can use interpolations and html markup inside of your translations. - 你可以在翻译结果中使用插值表达式和 HTML 标记。 + 你可以在翻译结果中使用插值和 HTML 标记。
    diff --git a/aio/content/guide/language-service.md b/aio/content/guide/language-service.md index 9842ce0a8b..688d8dd537 100644 --- a/aio/content/guide/language-service.md +++ b/aio/content/guide/language-service.md @@ -56,7 +56,7 @@ contextual possibilities and hints as you type. This example shows autocomplete in an interpolation. As you type it out, you can hit tab to complete. -自动补全可以在输入时为你提供当前情境下的候选内容和提示,从而提高开发速度。下面这个例子展示了插值表达式中的自动补全功能。当你进行输入的时候,就可以按 tab 键来自动补全。 +自动补全可以在输入时为你提供当前情境下的候选内容和提示,从而提高开发速度。下面这个例子展示了插值中的自动补全功能。当你进行输入的时候,就可以按 tab 键来自动补全。