@@ -1738,7 +1738,7 @@ The starter app's structure looks like this:
page-not-found.component.ts
-
+
@@ -1869,7 +1869,7 @@ The **Routing Module** has several characteristics:
* Does **not** declare components.
**不要**声明组件。
-
+
{@a integrate-routing}
### Integrate routing with your app
@@ -2077,7 +2077,7 @@ Follow these steps:
* Copy the contents of the `heroes/heroes.component.html` from
the
"Services" tutorial into the `hero-list.component.html` template.
-
+
从
教程的 "服务" 部分把 `heroes/heroes.component.html` 的内容复制到 `hero-list.component.html` 模板中。
* Relabel the `
` to `HEROES
`.
@@ -2098,17 +2098,17 @@ Follow these steps:
把在线例子中 `heroes/heroes.component.ts` 文件的内容复制到 `hero-list.component.ts` 文件中。
* Change the component class name to `HeroListComponent`.
-
+
把组件类名改为 `HeroListComponent`。
-
+
* Change the `selector` to `app-hero-list`.
-
+
把 `selector` 改为 `app-hero-list`。
-
+
Selectors are **not required** for _routed components_ due to the components are dynamically inserted when the page is rendered, but are useful for identifying and targeting them in your HTML element tree.
-
+
对于**路由组件**来说,这些选择器**不是必须的**,因为这些组件是在渲染页面时动态插入的,不过选择器对于在 HTML 元素树中标记和选中它们是很有用的。
@@ -3359,7 +3359,7 @@ hero-list
page-not-found.component.ts
-
+
@@ -3398,7 +3398,7 @@ hero-list
main.ts
-
+
@@ -3526,7 +3526,7 @@ Begin by imitating the heroes feature:
在 `src/app` 目录下创建一个 `crisis-center` 子目录。
* Copy the files and folders from `app/heroes` into the new `crisis-center` folder.
-
+
把 `app/heroes` 中的文件和目录复制到新的 `crisis-center` 文件夹中。
* In the new files, change every mention of "hero" to "crisis", and "heroes" to "crises".
@@ -4635,7 +4635,7 @@ update the admin route with a `canActivate` guard property that references it:
-
+
The admin feature is now protected by the guard, albeit protected poorly.
管理特性区现在受此守卫保护了,不过这样的保护还不够。
diff --git a/aio/content/guide/service-worker-getting-started.md b/aio/content/guide/service-worker-getting-started.md
index ea19b8d4b0..6eb966ddeb 100644
--- a/aio/content/guide/service-worker-getting-started.md
+++ b/aio/content/guide/service-worker-getting-started.md
@@ -53,7 +53,7 @@ The above command completes the following actions:
包含要添加到 `manifest.json` 文件中的链接。
* Adds meta tags for `theme-color`.
-
+
为 `theme-color` 添加 meta 标签。
5. Installs icon files to support the installed Progressive Web App (PWA).
diff --git a/aio/content/guide/testing.md b/aio/content/guide/testing.md
index dde28a8137..b479e95fac 100644
--- a/aio/content/guide/testing.md
+++ b/aio/content/guide/testing.md
@@ -248,7 +248,7 @@ sudo: false
language: node_js
node_js:
- "8"
-
+
addons:
apt:
sources:
diff --git a/aio/content/guide/universal.md b/aio/content/guide/universal.md
index 1d6badef03..c8abfc2677 100644
--- a/aio/content/guide/universal.md
+++ b/aio/content/guide/universal.md
@@ -236,9 +236,9 @@ The following sections go into each of these main steps in more detail.
**Note:** The [Universal tutorial](#the-example) below walks you through the steps using the Tour of Heroes sample app, and goes into more detail about what you can do and why you might want to do it.
-
+
**注意:稍后的 **[Universal 教程](#the-example)将引导你基于 "英雄指南" 应用来完成各个步骤,并详细介绍你能做什么以及为什么要那么做。
-
+
To see a working version of an app with server-side rendering, clone the [Angular Universal starter](https://github.com/angular/universal-starter).
要亲自体验带服务端渲染功能的应用,请把 [Angular Universal starter](https://github.com/angular/universal-starter) 克隆下来试试。
@@ -390,7 +390,7 @@ Copy `tsconfig.app.json` to `tsconfig.server.json` and modify it as follows:
* Add a section for `"angularCompilerOptions"` and set `"entryModule"` to point to your `AppServerModule` instance. Use the format `importPath#symbolName`. In this example, the entry module is `app/app.server.module#AppServerModule`.
添加一个 `"angularCompilerOptions"` 节,并把 `"entryModule"`(入口模块)指向你的 `AppServerModule` 实例,格式为 `importPath#symbolName`。在这个例子中,这个入口模块是 `app/app.server.module#AppServerModule`。
-
+
{
diff --git a/aio/content/guide/upgrade-performance.md b/aio/content/guide/upgrade-performance.md
index c3deb16be2..54c864f20d 100644
--- a/aio/content/guide/upgrade-performance.md
+++ b/aio/content/guide/upgrade-performance.md
@@ -75,7 +75,7 @@ upgrade/static} utilities remain the same. For more information, see the
[从 AngularJS 升级](guide/upgrade)中的[变更检测](guide/upgrade#change-detection)部分仅仅适用于使用 `UpgradeModule` 的应用。
虽然你处理变更检测的方式和 `downgradeModule()`(本章的重点)不同,不过读一下[变更检测](guide/upgrade#change-detection)部分还是能为后续内容提供一些有用的上下文知识。
-
+
@@ -165,14 +165,14 @@ other. This is known as "upgrading" and "downgrading".
Definitions:
-
+
定义:
- _Upgrading_: The act of making an AngularJS asset, such as a component or service, available to
the Angular part of the app.
-
+
*升级*:让 AngularJS 中的资产,比如组件或服务,可用于应用中的 Angular 部分。
-
+
- _Downgrading_: The act of making an Angular asset, such as a component or service, available to
the AngularJS part of the app.
@@ -304,9 +304,9 @@ A few examples are:
- You use Angular for features that are only visible to specific types of users; for example,
logged-in users, administrators, or VIP members. You don't need to load Angular until a user is
authenticated.
-
+
你可以将 Angular 用于仅对特定类型的用户可见的特性,比如:登录用户、管理员或 VIP 成员。这样在用户通过了身份验证之前,你都无需加载 Angular。
-
+
- You use Angular for a feature that is not critical for the initial rendering of the app and you
can afford a small delay in favor of better initial load performance.
@@ -519,14 +519,14 @@ To summarize, the key differentiating factors of `downgradeModule()` are:
1. It allows instantiating or even loading the Angular part lazily, which improves the initial
loading time. In some cases this may waive the cost of running a second framework altogether.
-
+
它允许实例化甚至惰性加载 Angular 部分,这能改善初始加载时间。某些情况下,这可能会完全免除启动第二个框架的成本。
-
+
2. It improves performance by avoiding unnecessary change detection runs while giving the developer
greater ability to customize.
-
+
通过避免运行不必要的变更检测,它提高了性能,给开发人员提供了更大的自定义能力。
-
+
3. It does not require you to change how you bootstrap your AngularJS app.
它不需要你更改引导 AngularJS 应用的方式。
diff --git a/aio/content/translations/cn/about.md b/aio/content/translations/cn/about.md
index 3d77ca8651..22156d4e60 100644
--- a/aio/content/translations/cn/about.md
+++ b/aio/content/translations/cn/about.md
@@ -120,7 +120,7 @@ Angular 和 Grails 开发高校[教务管理系统](http://www.github.com/jwgl)
- **严清**
AngularJS 中文社区的早期耕耘者,也是 AngularJS 1.x 的早期传道者之一。虽然他已经不再使用 AngularJS 技术栈,但其对社区的贡献和影响力不应忘记。
-
+
- **格茸扎西(破狼)**
AngularJS 中文社区系列 QQ 群的群主,从严清手里接下 QQ 群并长期维护。他还与译者之一的汪志成(雪狼)合著过一本书《 AngularJS 深度剖析与最佳实践》,这本书的成功让我们看到了中文社区对 Angular 的热情支持,最终激发了我们翻译 Angular 官网的行动。我们还共同完成了对国外新书 ng-book2(中译本《Angular 权威教程》) 的翻译工作。
diff --git a/aio/content/translations/cn/nice-angular.md b/aio/content/translations/cn/nice-angular.md
index d4c4d157db..07260ab238 100644
--- a/aio/content/translations/cn/nice-angular.md
+++ b/aio/content/translations/cn/nice-angular.md
@@ -1,7 +1,7 @@
# Nice Angular 社区简介
## Nice Angular 社区:QQ 群
-
+
- 278252889( Nice Angular 社区,2000 人已满)
- 305739270( Nice Angular 社区二群,2000 人)
- 207542263( Nice Angular 社区三群,1000 人)
diff --git a/aio/content/tutorial/toh-pt0.md b/aio/content/tutorial/toh-pt0.md
index 98894501e9..31c78a5ecf 100644
--- a/aio/content/tutorial/toh-pt0.md
+++ b/aio/content/tutorial/toh-pt0.md
@@ -66,9 +66,9 @@ To create a new workspace and an initial app project:
要想创建一个新的工作空间和一个初始应用项目,需要:
1. Ensure that you are not already in an Angular workspace folder. For example, if you have previously created the Getting Started workspace, change to the parent of that folder.
-
+
确保你现在没有位于 Angular 工作区的文件夹中。例如,如果你之前已经创建过 "快速上手" 工作空间,请回到其父目录中。
-
+
2. Run the CLI command `ng new` and provide the name `angular-tour-of-heroes`, as shown here:
运行 CLI 命令 `ng new`,空间名请使用 `angular-tour-of-heroes`,如下所示:
@@ -90,19 +90,19 @@ It also creates the following workspace and starter project files:
它还会创建下列工作空间和初始项目的文件:
* A new workspace, with a root folder named `angular-tour-of-heroes`.
-
+
新的工作空间,其根目录名叫 `angular-tour-of-heroes`。
-
+
* An initial skeleton app project, also called `angular-tour-of-heroes` (in the `src` subfolder).
-
+
一个最初的骨架应用项目,同样叫做 `angular-tour-of-heroes`(位于 `src` 子目录下)。
-
+
* An end-to-end test project (in the e2e subfolder).
-
+
一个端到端测试项目(位于 e2e 子目录下)。
-
+
* Related configuration files.
-
+
相关的配置文件。
The initial app project contains a simple Welcome app, ready to run.