diff --git a/aio/content/guide/architecture.md b/aio/content/guide/architecture.md index f10340af77..0adb9b75c7 100644 --- a/aio/content/guide/architecture.md +++ b/aio/content/guide/architecture.md @@ -629,15 +629,19 @@ Of course, you can also write your own directives. Components such as ## 服务 -服务 +Service _Service_ is a broad category encompassing any value, function, or feature that your application needs. *服务*是一个广义范畴,包括:值、函数,或应用所需的特性。 Almost anything can be a service. -A service is typically a class with a narrow, well-defined purpose. It should do something specific and do it well.几乎任何东西都可以是一个服务。 -典型的服务是一个类,具有专注的、明确的用途。它应该做一件特定的事情,并把它做好。
+A service is typically a class with a narrow, well-defined purpose. It should do something specific and do it well. + +几乎任何东西都可以是一个服务。 +典型的服务是一个类,具有专注的、明确的用途。它应该做一件特定的事情,并把它做好。 + +
Examples include: @@ -728,11 +732,13 @@ Angular 帮助我们*遵循*这些原则 —— 它让我们能轻易地把应 ## 依赖注入 -服务 +Service _Dependency injection_ is a way to supply a new instance of a class with the fully-formed dependencies it requires. Most dependencies are services. -Angular uses dependency injection to provide new components with the services they need.“依赖注入”是提供类的新实例的一种方式,还负责处理好类所需的全部依赖。大多数依赖都是服务。 +Angular uses dependency injection to provide new components with the services they need. + +“依赖注入”是提供类的新实例的一种方式,还负责处理好类所需的全部依赖。大多数依赖都是服务。 Angular 使用依赖注入来提供新组件以及组件所需的服务。
Angular can tell which services a component needs by looking at the types of its constructor parameters. diff --git a/aio/content/guide/displaying-data.md b/aio/content/guide/displaying-data.md index d521ac07fe..ac872f0208 100644 --- a/aio/content/guide/displaying-data.md +++ b/aio/content/guide/displaying-data.md @@ -385,7 +385,7 @@ That brief syntax does a lot: ### Using the Hero class -## 使用 Hero 类 +### 使用 Hero 类 After importing the `Hero` class, the `AppComponent.heroes` property can return a _typed_ array of `Hero` objects: diff --git a/aio/content/guide/template-syntax.md b/aio/content/guide/template-syntax.md index 0ab7d5cc98..f2a17ccef1 100644 --- a/aio/content/guide/template-syntax.md +++ b/aio/content/guide/template-syntax.md @@ -128,7 +128,12 @@ Though this is not exactly true. Interpolation is a special syntax that Angular 但严格来讲,这是不对的。插值表达式是一个特殊的语法,Angular 把它转换成了[属性绑定](guide/template-syntax#property-binding),[后面](guide/template-syntax#property-binding-or-interpolation)将会解释这一点。 But first, let's take a closer look at template expressions and statements. -讲解属性绑定之前,先深入了解一下模板表达式和模板语句。back to top回到顶部 + +讲解属性绑定之前,先深入了解一下模板表达式和模板语句。 + +back to top + +回到顶部
@@ -242,8 +247,13 @@ Template expressions cannot refer to anything in the global namespace. They can't refer to `window` or `document`. They can't call `console.log` or `Math.max`. They are restricted to referencing members of the expression context. + 模板表达式不能引用全局命名空间中的任何东西,比如`window`或`document`。它们也不能调用`console.log`或`Math.max`。 -它们只能引用表达式上下文中的成员。back to top回到顶部 +它们只能引用表达式上下文中的成员。 + +back to top + +回到顶部 {@a no-side-effects} @@ -471,8 +481,14 @@ A method call or simple property assignment should be the norm. Now that you have a feel for template expressions and statements, you're ready to learn about the varieties of data binding syntax beyond interpolation. + + 现在,对模板表达式和语句有了一点感觉了吧。 - 除插值表达式外,还有各种各样的数据绑定语法,是学习它们是时候了。back to top回到顶部 + 除插值表达式外,还有各种各样的数据绑定语法,是学习它们是时候了。 + +back to top + +回到顶部
@@ -1931,8 +1947,13 @@ Template statement side effects are not just OK, but expected. Deleting the hero updates the model, perhaps triggering other changes including queries and saves to a remote server. These changes percolate through the system and are ultimately displayed in this and other views. + 删除这个英雄会更新模型,还可能触发其它修改,包括向远端服务器的查询和保存。 -这些变更通过系统进行扩散,并最终显示到当前以及其它视图中。back to top回到顶部 +这些变更通过系统进行扩散,并最终显示到当前以及其它视图中。 + +back to top + +回到顶部
diff --git a/aio/content/marketing/api.html b/aio/content/marketing/api.html index c2508b53b3..4ef787df33 100755 --- a/aio/content/marketing/api.html +++ b/aio/content/marketing/api.html @@ -1,2 +1,2 @@ -

API List

+

API 列表

diff --git a/aio/src/app/embedded/api/api-list.component.html b/aio/src/app/embedded/api/api-list.component.html index 893947fcaf..5667d5f521 100644 --- a/aio/src/app/embedded/api/api-list.component.html +++ b/aio/src/app/embedded/api/api-list.component.html @@ -4,13 +4,13 @@ [options]="types" [selected]="type" [showSymbol]="true" - label="Type:"> + label="类型:"> + label="状态:">