diff --git a/aio/content/guide/aot-compiler.md b/aio/content/guide/aot-compiler.md index 684a2f0a70..9b59395130 100644 --- a/aio/content/guide/aot-compiler.md +++ b/aio/content/guide/aot-compiler.md @@ -1598,6 +1598,8 @@ provider: [{ provide: Foo, useValue: { 0: 'test' } }] Change the name of the property to something non-numeric. +把该属性的名字改为非数字类型。 + ``` // CORRECTED diff --git a/aio/content/guide/architecture.md b/aio/content/guide/architecture.md index 75639f8fdc..9fd5d715e2 100644 --- a/aio/content/guide/architecture.md +++ b/aio/content/guide/architecture.md @@ -892,15 +892,14 @@ by implementing the lifecycle hook interfaces. > [**Pipes**](guide/pipes): Use pipes in your templates to improve the user experience by transforming values for display. Consider this `currency` pipe expression: > -> > `price | currency:'USD':true` -> -> It displays a price of 42.33 as `$42.33`. - > [**管道**](guide/pipes):在模板中使用管道转换成用于显示的值,以增强用户体验。例如,`currency` 管道表达式: > > > `price | currency:'USD':true` > +> It displays a price of 42.33 as `$42.33`. +> > 它把价格“42.33”显示为 `$42.33`。 +> > [**Router**](guide/router): Navigate from page to page within the client application and never leave the browser. diff --git a/aio/content/guide/browser-support.md b/aio/content/guide/browser-support.md index 5711353015..c430d623b2 100644 --- a/aio/content/guide/browser-support.md +++ b/aio/content/guide/browser-support.md @@ -323,6 +323,8 @@ These are the polyfills required to run an Angular application on each supported [ES7/reflect](guide/browser-support#core-es7-reflect) (JIT only) + [ES7/reflect](guide/browser-support#core-es7-reflect) (仅 JIT) + diff --git a/aio/content/guide/comparing-observables.md b/aio/content/guide/comparing-observables.md index 9df6b68c3e..4004431bdb 100644 --- a/aio/content/guide/comparing-observables.md +++ b/aio/content/guide/comparing-observables.md @@ -270,6 +270,8 @@ The following code snippets illustrate how the same kind of operation is defined Implied by promise resolution. + 承诺被解析时隐式完成。 + @@ -393,6 +395,9 @@ button.removeEventListener(‘click’, handler); Listen for keystrokes, but provide a stream representing the value in the input. + + 监听按键,提供一个流来表示这些输入的值。 +
fromEvent(inputEl, 'keydown').pipe(
   map(e => e.target.value)
 );
@@ -402,6 +407,9 @@ button.removeEventListener(‘click’, handler); Does not support configuration. + + 不支持配置。 +
element.addEventListener(eventName, (event) => {
   // Cannot change the passed Event into another
   // value before it gets to the handler
diff --git a/aio/content/guide/glossary.md b/aio/content/guide/glossary.md
index 9cd4f0fbe4..871ab68572 100644
--- a/aio/content/guide/glossary.md
+++ b/aio/content/guide/glossary.md
@@ -199,8 +199,12 @@ Angular 文档中提到“驼峰式命名法 (camelCase) ”的时候,所指
 
 The Angular CLI is a `command line interface` tool that can create a project, add files, and perform a variety of ongoing development tasks such as testing, bundling, and deployment.
 
+Angular CLI 是个命令行接口(Command Line Interface)工具,它可以创建项目、添加文件以及执行各种正在进行的开发任务,比如测试、打包和部署。
+
 Learn more in the [Getting Started](guide/quickstart) guide.
 
+要了解更多,参见[快速起步](guide/quickstart)。
+
 {@a component}
 
 ## Component
@@ -782,17 +786,22 @@ You rarely access Angular feature modules directly. You usually import them from
 
 ## NgModule
 
-## 可观察对象 (observable)
-
 Helps you organize an application into cohesive blocks of functionality.
 An NgModule identifies the components, directives, and pipes that the application uses along with the list of external NgModules that the application needs, such as `FormsModule`.
 
+帮助你把应用组织成多个内聚的功能块。
+NgModule 表示应用的组件、指令和管道以及所用到的外部模块的列表,比如 `FormsModule`。
+
 Every Angular application has an application root-module class. By convention, the class is
 called `AppModule` and resides in a file named `app.module.ts`.
 
+每个 Angular 应用都有一个应用级根模块类。这类通常叫做 `AppModule`,并且位于一个名叫 `app.module.ts` 的文件中。
+
 For details and examples, see [NgModules](guide/ngmodules) and the 
 related files in that section.
 
+要获得详情和范例,参见 [NgModule](guide/ngmodules) 及其相关文件。
+
 {@a O}
 
 ## Observable
diff --git a/aio/content/guide/lifecycle-hooks.md b/aio/content/guide/lifecycle-hooks.md
index 296606a2f1..1e7ce479d9 100644
--- a/aio/content/guide/lifecycle-hooks.md
+++ b/aio/content/guide/lifecycle-hooks.md
@@ -69,12 +69,16 @@ calls the lifecycle hook methods in the following sequence at specific moments:
 
         Hook
 
+        钩子
+
     
 
     
 
         Purpose and Timing
 
+        用途及时机
+
     
 
   
diff --git a/aio/content/guide/module-types.md b/aio/content/guide/module-types.md
index 742f0888fb..862aadb468 100644
--- a/aio/content/guide/module-types.md
+++ b/aio/content/guide/module-types.md
@@ -1,5 +1,7 @@
 # Types of Feature Modules
 
+# 特性模块的分类
+
 #### Prerequisites
 
 #### 前提条件
diff --git a/aio/content/guide/ngmodule-api.md b/aio/content/guide/ngmodule-api.md
index 10162bcba7..6a74e0b8ac 100644
--- a/aio/content/guide/ngmodule-api.md
+++ b/aio/content/guide/ngmodule-api.md
@@ -115,8 +115,9 @@ The following table summarizes the `@NgModule` metadata properties.
         
 
         
  • + The template is compiled within the context of an NgModule—the NgModule within which the template's component is declared—which determines the set of selectors using the following rules: - + 该模板在 NgModule 环境中编译 —— 模板的组件是在该 NgModule 内部声明的,它会使用如下规则来确定这组选择器: