diff --git a/aio/content/guide/architecture-components.md b/aio/content/guide/architecture-components.md
index 7212ed7587..ec36b35eba 100644
--- a/aio/content/guide/architecture-components.md
+++ b/aio/content/guide/architecture-components.md
@@ -1,9 +1,13 @@
# Introduction to components
+# 组件简介
+
A _component_ controls a patch of screen called a *view*. For example, individual components define and control each of the following views from the [Tutorial](tutorial/index):
+*组件*控制屏幕上被称为*视图*的一小片区域。比如,[教程](tutorial/index)中的下列视图都是由一个个组件所定义和控制的:
+
* The app root with the navigation links.
带有导航链接的应用根组件。
@@ -23,82 +27,151 @@ You define a component's application logic—what it does to support the vie
For example, the `HeroListComponent` has a `heroes` property that returns an array of heroes that it acquires from a service. `HeroListComponent` also has a `selectHero()` method that sets a `selectedHero` property when the user clicks to choose a hero from that list.
+比如,`HeroListComponent` 有一个 `heroes` 属性,它会返回一个从服务中取到的英雄数组。
+`HeroListComponent` 还有一个 `selectHero()` 方法,当用户从列表中选择一个英雄时,它会设置 `selectedHero` 属性的值。
+
The `@Component` decorator identifies the class immediately below it as a component class, and specifies its metadata. In the example code below, you can see that `HeroListComponent` is just a class, with no special Angular notation or syntax at all. It's not a component until mark it as one with the `@Component` decorator.
+`@Component` 装饰器会指出紧随其后的那个类是个组件类,并为其指定元数据。
+在下面的范例代码中,你可以看到 `HeroListComponent` 只是一个普通类,完全没有 Angular 特有的标记或语法。
+直到给它加上了 `@Component` 装饰器,它才变成了组件。
+
The metadata for a component tells Angular where to get the major building blocks it needs to create and present the component and its view. In particular, it associates a _template_ with the component, either directly with inline code, or by reference. Together, the component and its template describe a _view_.
+组件的元数据告诉 Angular 到哪里获取它需要的主要构造块,以创建和展示这个组件及其视图。
+具体来说,它把一个*模板*(无论是直接内联在代码中还是引用的外部文件)和该组件关联起来。
+该组件及其模板,共同描述了一个*视图*。
+
In addition to containing or pointing to the template, the `@Component` metadata configures, for example, how the component can be referenced in HTML and what services it requires.
+除了包含或指向模板之外,`@Component` 的元数据还会配置要如何在 HTML 中引用该组件,以及该组件需要哪些服务等等。
+
Here's an example of basic metadata for `HeroListComponent`:
+ 下面的例子中就是 `HeroListComponent` 的基础元数据:
+
You define a component's view with its companion template. A template is a form of HTML that tells Angular how to render the component.
+你要通过组件的配套模板来定义其视图。模板就是一种 HTML,它会告诉 Angular 如何渲染该组件。
+
Views are typically arranged hierarchically, allowing you to modify or show and hide entire UI sections or pages as a unit. The template immediately associated with a component defines that component's _host view_. The component can also define a _view hierarchy_, which contains _embedded views_, hosted by other components.
+视图通常会分层次进行组织,让你能以 UI 分区或页面为单位进行修改、显示或隐藏。
+与组件直接关联的模板会定义该组件的*宿主视图*。该组件还可以定义一个*带层次结构的视图*,它包含一些*内嵌的视图*作为其它组件的宿主。
+
`, and also includes Angular template-syntax elements, `*ngFor`, `{{hero.name}}`, `(click)`, `[hero]`, and ` `,还包括一些 Angular 的模板语法元素,如 `*ngFor`,`{{hero.name}}`,`click`、`[hero]` 和 `` 和 `
Angular templates are *dynamic*. When Angular renders them, it transforms the DOM according to the instructions given by *directives*. A directive is a class with a `@Directive` decorator.
+Angular 的模板是*动态的*。当 Angular 渲染它们的时候,会根据*指令*给出的指示对 DOM 进行转换。
+指令就是一个带有 `@Directive` 装饰器的类。
+
A component is technically a directive - but components are so distinctive and central to Angular applications that Angular defines the `@Component` decorator, which extends the `@Directive` decorator with template-oriented features.
+组件从技术角度上说就是一个指令,但是由于组件对 Angular 应用来说非常独特、非常重要,因此 Angular 专门定义了 `@Component` 装饰器,它使用一些面向模板的特性扩展了 `@Directive` 装饰器。
+
There are two kinds of directives besides components: _structural_ and _attribute_ directives. Just as for components, the metadata for a directive associates the class with a `selector` that you use to insert it into HTML. In templates, directives typically appear within an element tag as attributes, either by name or as the target of an assignment or a binding.
+除组件外,还有两种指令:*结构型指令*和*属性型指令*。和组件一样,指令的元数据把指令类和一个 `selector` 关联起来,`selector` 用来把该指令插入到 HTML 中。
+在模板中,指令通常作为属性出现在元素标签上,可能仅仅作为名字出现,也可能作为赋值目标或绑定目标出现。
+
#### Structural directives
+#### 结构型指令
+
Structural directives alter layout by adding, removing, and replacing elements in DOM. The example template uses two built-in structural directives to add application logic to how the view is rendered:
+结构型指令通过添加、移除或替换 DOM 元素来修改布局。
+这个范例模板使用了两个内置的结构型指令来为要渲染的视图添加程序逻辑:
+
Angular apps are modular and Angular has its own modularity system called _NgModules_. An NgModule is a container for a cohesive block of code dedicated to an application domain, a workflow, or a closely related set of capabilities. It can contain components, service providers, and other code files whose scope is defined by the containing NgModule. It can import functionality that is exported from other NgModules, and export selected functionality for use by other NgModules.
+Angular 应用是模块化的,它拥有自己的模块化系统,称作 *NgModule*。
+一个 NgModule 就是一个容器,用于存放一些内聚的代码块,这些代码块专注于某个应用领域、某个工作流或一组紧密相关的功能。
+它可以包含一些组件、服务提供商或其它代码文件,其作用域由包含它们的 NgModule 定义。
+它还可以导入一些由其它模块中导出的功能,并导出一些指定的功能供其它 NgModule 使用。
+
Every Angular app has at least one NgModule class, [the _root module_](guide/bootstrapping), which is conventionally named `AppModule` and resides in a file named `app.module.ts`. You launch your app by *bootstrapping* the root NgModule.
+每个 Angular 应用都至少有一个 NgModule 类,也就是[根模块](guide/bootstrapping),它习惯上命名为 `AppModule`,并位于一个名叫 `app.module.ts` 的文件中。*引导*这个根模块就可以启动你的应用。
+
While a small application might have only one NgModule, most apps have many more _feature modules_. The _root_ NgModule for an app is so named because it can include child NgModules in a hierarchy of any depth.
+虽然小型的应用可能只有一个 NgModule,不过大多数应用都会有很多*特性模块*。应用的*根模块*之所以叫根模块,是因为它可以包含任意深度的层次化子模块。
+
## NgModule metadata
## `@NgModule` 元数据
An NgModule is defined as a class decorated with `@NgModule`. The `@NgModule` decorator is a function that takes a single metadata object, whose properties describe the module. The most important properties are as follows.
+NgModule 是一个带有 `@NgModule` 装饰器的类。`@NgModule` 装饰器是一个函数,它接受一个元数据对象,该对象的属性用来描述这个模块。其中最重要的属性如下。
+
* `declarations`—The [components](guide/architecture-components), _directives_, and _pipes_ that belong to this NgModule.
+ `declarations`(可声明对象表) —— 那些属于本 NgModule 的[组件](guide/architecture-components)、*指令*、*管道*。
+
* `exports`—The subset of declarations that should be visible and usable in the _component templates_ of other NgModules.
+ `exports`(导出表) —— 那些能在其它模块的*组件模板*中使用的可声明对象的子集。
+
* `imports`—Other modules whose exported classes are needed by component templates declared in _this_ NgModule.
+ `imports`(导入表) —— 那些导出了*本*模块中的组件模板所需的类的其它模块。
+
* `providers`—Creators of [services](guide/architecture-services) that this NgModule contributes to the global collection of services; they become accessible in all parts of the app. (You can also specify providers at the component level, which is often preferred.)
+ `providers` —— 本模块向全局服务中贡献的那些[服务](guide/architecture-services)的创建器。
+ 这些服务能被本应用中的任何部分使用。(你也可以在组件级别指定服务提供商,这通常是首选方式。)
+
* `bootstrap`—The main application view, called the _root component_, which hosts all other app views. Only the _root NgModule_ should set this `bootstrap` property.
+ `bootstrap` —— 应用的主视图,称为*根组件*。它是应用中所有其它视图的宿主。只有*根模块*才应该设置这个 `bootstrap` 属性。
+
Here's a simple root NgModule definition:
+下面是一个简单的根 NgModule 定义:
+
@@ -48,6 +82,10 @@ NgModules provide a _compilation context_ for their components. A root NgModule
A component and its template together define a _view_. A component can contain a _view hierarchy_, which allows you to define arbitrarily complex areas of the screen that can be created, modified, and destroyed as a unit. A view hierarchy can mix views defined in components that belong to different NgModules. This is often the case, especially for UI libraries.
+组件及其模板共同定义*视图*。组件还可以包含*视图层次结构*,它能让你定义任意复杂的屏幕区域,可以将其作为一个整体进行创建、修改和销毁。
+一个视图层次结构中可以混合使用由不同 NgModule 中的组件定义的视图。
+这种情况很常见,特别是对一些 UI 库来说。
+
@@ -58,16 +96,28 @@ A component and its template together define a _view_. A component can contain a
When you create a component, it is associated directly with a single view, called the _host view_. The host view can be the root of a view hierarchy, which can contain _embedded views_, which are in turn the host views of other components. Those components can be in the same NgModule, or can be imported from other NgModules. Views in the tree can be nested to any depth.
+当你创建一个组件时,它直接与一个叫做*宿主视图*的视图关联起来。
+宿主视图可以是视图层次结构的根,该视图层次结构可以包含一些*内嵌视图*,这些内嵌视图又是其它组件的宿主视图。
+这些组件可以位于相同的 NgModule 中,也可以从其它 NgModule 中导入。
+树中的视图可以嵌套到任意深度。
+
Angular ships as a collection of JavaScript modules. You can think of them as library modules. Each Angular library name begins with the `@angular` prefix. Install them with the `npm` package manager and import parts of them with JavaScript `import` statements.
+Angular 自带了一组 JavaScript 模块,你可以把它们看成库模块。每个 Angular 库的名称都带有 `@angular` 前缀。
+使用 `npm` 包管理器安装它们,并使用 JavaScript 的 `import` 语句导入其中的各个部分。
+
For example, import Angular's `Component` decorator from the `@angular/core` library like this:
@@ -110,10 +165,15 @@ You also import NgModules from Angular _libraries_ using JavaScript import state
In the example of the simple root module above, the application module needs material from within the `BrowserModule`. To access that material, add it to the `@NgModule` metadata `imports` like this.
+在上面这个简单的根模块范例中,应用的根模块需要来自 `BrowserModule` 中的素材。要访问这些素材,就要把它加入 `@NgModule` 元数据的 `imports` 中,代码如下:
+
FooModule in foo.module.ts has a routing module named FooRoutingModule in foo-routing.module.ts. If the companion module is the root AppModule, the AppRoutingModule adds router configuration to its imports with RouterModule.forRoot(routes). All other routing modules are children that import RouterModule.forChild(routes).
- 路由模块应该与其伴随模块同名,但是加上“Routing”后缀。比如,foo.module.ts 中的 FooModule 就有一个位于 foo-routing.module.ts 文件中的 FooRoutingModule 路由模块。
- 如果其伴随模块是根模块 `AppModule`,`AppRoutingModule` 就要使用 `RouterModule.forRoot(routes)` 来把路由器配置添加到它的 `imports` 中。
+ 路由模块应该与其配套模块同名,但是加上“Routing”后缀。比如,foo.module.ts 中的 FooModule 就有一个位于 foo-routing.module.ts 文件中的 FooRoutingModule 路由模块。
+ 如果其配套模块是根模块 `AppModule`,`AppRoutingModule` 就要使用 `RouterModule.forRoot(routes)` 来把路由器配置添加到它的 `imports` 中。
所有其它路由模块都是子模块,要使用 `RouterModule.forChild(routes)`。
@@ -213,7 +213,7 @@ typical characteristics, in real world apps, you may see hybrids.
A routing module re-exports the RouterModule as a convenience so that components of the companion module have access to router directives such as RouterLink and RouterOutlet.
- 按照惯例,路由模块会重新导出这个 RouterModule,以便伴随模块中的组件可以访问路由器指令,比如 `RouterLink` 和 `RouterOutlet`。
+ 按照惯例,路由模块会重新导出这个 RouterModule,以便其配套模块中的组件可以访问路由器指令,比如 `RouterLink` 和 `RouterOutlet`。
@@ -229,7 +229,7 @@ typical characteristics, in real world apps, you may see hybrids.
A routing module should only be imported by its companion module.
- 路由模块应该只被它的伴随模块导入。
+ 路由模块只应该被它的配套模块导入。
diff --git a/aio/content/guide/styleguide.md b/aio/content/guide/styleguide.md
index b9bb9353fb..afcfd983b9 100644
--- a/aio/content/guide/styleguide.md
+++ b/aio/content/guide/styleguide.md
@@ -68,7 +68,7 @@ If you fully understand the meaning behind the guideline and have a good reason
Some code examples display a file that has one or more similarly named companion files.
For example, `hero.component.ts` and `hero.component.html`.
-在一些代码例子中,有的文件有一个或多个相似名字的伴随文件。(例如 hero.component.ts 和 hero.component.html)。
+在一些代码例子中,有的文件有一个或多个相似名字的配套文件。(例如 hero.component.ts 和 hero.component.html)。
The guideline uses the shortcut `hero.component.ts|html|css|spec` to represent those various files. Using this shortcut makes this guide's file structures easier to read and more terse.
diff --git a/aio/content/guide/template-syntax.md b/aio/content/guide/template-syntax.md
index 741b84cded..3b57c719f3 100644
--- a/aio/content/guide/template-syntax.md
+++ b/aio/content/guide/template-syntax.md
@@ -1830,7 +1830,7 @@ Here's a `SizerComponent` that fits the pattern.
It has a `size` value property and a companion `sizeChange` event:
当一个元素拥有可以设置的属性 `x` 和对应的事件 `xChange` 时,解释 `[(x)]` 语法就容易多了。
-下面的 `SizerComponent` 符合这个模式。它有 `size` 属性和伴随的 `sizeChange` 事件:
+下面的 `SizerComponent` 符合这个模式。它有 `size` 属性和配套的 `sizeChange` 事件: