diff --git a/aio/content/guide/ajs-quick-reference.md b/aio/content/guide/ajs-quick-reference.md index 12ec26ee83..f1ee38da5d 100644 --- a/aio/content/guide/ajs-quick-reference.md +++ b/aio/content/guide/ajs-quick-reference.md @@ -777,7 +777,7 @@ AngularJS 为模板提供了七十多个内置指令。 For more information on property binding, see the [Property binding](guide/template-syntax#property-binding) section of the [Template Syntax](guide/template-syntax) page. - 要了解属性绑定的更多知识,参见[模板语法](guide/template-syntax)中的[属性绑定](guide/template-syntax#property-binding)部分。 + 要了解关于属性绑定的更多知识,参见[模板语法](guide/template-syntax)中的[属性绑定](guide/template-syntax#property-binding)部分。 @@ -828,7 +828,7 @@ AngularJS 为模板提供了七十多个内置指令。 For more information on style binding, see the [Style binding](guide/template-syntax#style-binding) section of the [Template Syntax](guide/template-syntax) page. - 要了解样式绑定的更多知识,参见[模板语法](guide/template-syntax)中的[样式绑定](guide/template-syntax#style-binding)部分。 + 要了解关于样式绑定的更多知识,参见[模板语法](guide/template-syntax)中的[样式绑定](guide/template-syntax#style-binding)部分。 For more information on the `ngStyle` directive, see [NgStyle](guide/template-syntax#ngStyle) section of the [Template Syntax](guide/template-syntax) page. @@ -1028,7 +1028,7 @@ AngularJS 中的很多内置过滤器在 Angular 中都有对应的管道。 Selects a subset of items from the defined collection, based on the filter criteria. - 基于过滤条件从指定的集合中选取出一个子集。 + 根据过滤条件从指定的集合中选取出一个子集。 @@ -1227,7 +1227,7 @@ AngularJS 中的很多内置过滤器在 Angular 中都有对应的管道。 In both AngularJS and Angular, modules help you organize your application into cohesive blocks of functionality. -无论在 AngularJS 还是 Angular 中,你都要借助“模块”来把应用拆分成一些紧密相关的功能块。 +无论在 AngularJS 还是 Angular 中,“模块”都会帮你把应用拆分成一些内聚的功能块。 In AngularJS, you write the code that provides the model and the methods for the view in a **controller**. In Angular, you build a **component**. @@ -1593,7 +1593,7 @@ also encapsulate a style sheet within a specific component. This allows you to set appropriate styles for individual components that won’t leak into other parts of the application. - 这让你可以为各个组件设置合适的样式,而不用担心它被泄漏到程序中的其它部分。 + 这让你可以为各个组件设置合适的样式,而不用担心它泄漏到程序中的其它部分。 diff --git a/aio/content/guide/animations.md b/aio/content/guide/animations.md index 8e0d96f4a8..eaee6a92c7 100644 --- a/aio/content/guide/animations.md +++ b/aio/content/guide/animations.md @@ -269,7 +269,7 @@ region="transition2"> * Use `state()` to define styles that are applied at the end of each transition, they persist after the animation has completed. - 请用 `state()` 来定义那些在每个转场结束时样式,这些样式在动画结束时会保留。 + 请用 `state()` 来定义那些每个转场结束时的样式,这些样式在动画完成后仍会保留。 * Use `transition()` to define intermediate styles, which create the illusion of motion during the animation. diff --git a/aio/content/guide/aot-compiler.md b/aio/content/guide/aot-compiler.md index 0bd0ddd81a..56793a6826 100644 --- a/aio/content/guide/aot-compiler.md +++ b/aio/content/guide/aot-compiler.md @@ -13,7 +13,7 @@ The Angular Ahead-of-Time (AOT) compiler converts your Angular HTML and TypeScri This guide explains how to specify metadata and apply available compiler options to compile your applications efficiently using the AOT compiler. -本指南中解释了如何指定元数据,并通过一些编译器选项来借助 AOT 编译器来更有效的编译应用。 +本指南中解释了如何指定元数据,并使用一些编译器选项以借助 AOT 编译器来更有效的编译应用。
` in this case. -`@HostListener` 装饰器引用属性型指令的宿主元素,在这个例子中就是 `
`。 +`@HostListener` 装饰器让你订阅某个属性型指令所在的宿主 DOM 元素的事件,在这个例子中就是 `
`。
@@ -383,7 +383,7 @@ Fortunately you can name the directive property whatever you want _and_ **_alias
Restore the original property name and specify the selector as the alias in the argument to `@Input`.
-恢复原始属性名,并在 `@Input` 的参数中把选择器 `myHighlight` 指定为别名。
+恢复原始属性名,并在 `@Input` 的参数中把该选择器指定为别名。
declarations of this module.
Transforms the current value of expression cardNumber via the pipe called myCardNumberFormatter.
使用名叫myCardNumberFormatter的管道对表达式cardNumber的当前值进行变幻
使用名叫myCardNumberFormatter的管道对表达式cardNumber的当前值进行转换。
declarations of this module.
Conditionally swaps the contents of the div by selecting one of the embedded templates based on the current value of conditionExpression.
根据conditionExpression的当前值选择一个嵌入式模板,并用它替换这个 div 的内容。
根据conditionExpression的当前值选择一个嵌入式模板,并据此决定是否替换掉这个 div 的内容。
@@ -394,7 +394,7 @@ It takes a bit more work to get the child view into the parent component *class*
First, you have to import references to the `ViewChild` decorator and the `AfterViewInit` lifecycle hook.
-首先,你要使用 `ViewChild` 装饰器导入这个引用,并挂上 `AfterViewInit` 生命周期钩子。
+首先,你必须导入对装饰器 `ViewChild` 以及生命周期钩子 `AfterViewInit` 的引用。
Next, inject the child `CountdownTimerComponent` into the private `timerComponent` property
via the `@ViewChild` property decoration.
@@ -450,7 +450,7 @@ Use [the same countdown timer tests](guide/component-interaction#countdown-tests
A parent component and its children share a service whose interface enables bi-directional communication
*within the family*.
-父组件和它的子组件共享同一个服务,利用该服务*在家庭内部*实现双向通讯。
+父组件和它的子组件共享同一个服务,利用该服务*在组件家族内部*实现双向通讯。
The scope of the service instance is the parent component and its children.
Components outside this component subtree have no access to the service or their communications.
diff --git a/aio/content/guide/component-styles.md b/aio/content/guide/component-styles.md
index cd4a382d03..85c9df1e09 100644
--- a/aio/content/guide/component-styles.md
+++ b/aio/content/guide/component-styles.md
@@ -76,7 +76,7 @@ This scoping restriction is a ***styling modularity feature***.
* Class names and selectors are local to the component and don't collide with
classes and selectors used elsewhere in the application.
- 类名和选择器是仅属于组件内部的,它不会和应用中其它地方的类名和选择器出现冲突。
+ 类名和选择器是局限于该组件的,它不会和应用中其它地方的类名和选择器冲突。
* Changes to styles elsewhere in the application don't affect the component's styles.
@@ -90,7 +90,7 @@ This scoping restriction is a ***styling modularity feature***.
* You can change or remove component CSS code without searching through the
whole application to find where else the code is used.
- 将来你可以修改或移除组件的 CSS 代码,而不用遍历整个应用来看它有没有被别处用到,只要看看当前组件就可以了。
+ 将来你可以修改或移除组件的 CSS 代码,而不用遍历整个应用来看它有没有在别处用到。
{@a special-selectors}
@@ -316,7 +316,7 @@ ng generate component hero-app
You can embed CSS styles directly into the HTML template by putting them
inside `