From f50ff4ba430624f3759767cd870ee68cc096254f Mon Sep 17 00:00:00 2001 From: Zhicheng WANG Date: Tue, 29 Jan 2019 21:46:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=B2=BE=E4=BF=AE=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aio/content/guide/ajs-quick-reference.md | 8 ++++---- aio/content/guide/testing.md | 2 +- aio/content/guide/upgrade-performance.md | 1 + aio/content/tutorial/toh-pt1.md | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/aio/content/guide/ajs-quick-reference.md b/aio/content/guide/ajs-quick-reference.md index 4a9755f9d8..12ec26ee83 100644 --- a/aio/content/guide/ajs-quick-reference.md +++ b/aio/content/guide/ajs-quick-reference.md @@ -608,7 +608,7 @@ AngularJS 为模板提供了七十多个内置指令。 In AngularJS, the `ng-model` directive binds a form control to a property in the controller associated with the template. This provides **two-way binding**, whereby any change made to the value in the view is synchronized with the model, and any change to the model is synchronized with the value in the view. - 在 Angular1 中,`ng-model` 指令把一个表单控件绑定到了模板相关控制器的一个属性上。 + 在 AngularJS 中,`ng-model` 指令把一个表单控件绑定到了模板相关控制器的一个属性上。 这提供了**双向绑定**功能,因此,任何对视图中值的改动,都会同步到模型中,对模型的改动,也会同步到视图中。 @@ -648,7 +648,7 @@ AngularJS 为模板提供了七十多个内置指令。 In AngularJS, the `ng-repeat` directive repeats the associated DOM element for each item in the specified collection. - 在 Angular1 中,`ng-repeat` 指令会为指定集合中的每一个条目重复渲染相关的 DOM 元素。 + 在 AngularJS 中,`ng-repeat` 指令会为指定集合中的每一个条目重复渲染相关的 DOM 元素。 In this example, the table row (``) element repeats for each movie object in the collection of movies. @@ -863,7 +863,7 @@ AngularJS 为模板提供了七十多个内置指令。 In AngularJS, the `ng-switch` directive swaps the contents of an element by selecting one of the templates based on the current value of an expression. - 在 Angular1 中,`ng-switch` 指令根据一个表达式的当前值把元素的内容替换成几个模板之一。 + 在 AngularJS 中,`ng-switch` 指令根据一个表达式的当前值把元素的内容替换成几个模板之一。 In this example, if `favoriteHero` is not set, the template displays "Please enter ...". If `favoriteHero` is set, it checks the movie hero by calling a controller method. @@ -1421,7 +1421,7 @@ The Angular code is shown using TypeScript. In AngularJS, you write the code for the model and methods in a controller function. - 在 Angular1 中,你在控制器函数中编写模型和方法的代码。 + 在 AngularJS 中,你在控制器函数中编写模型和方法的代码。 diff --git a/aio/content/guide/testing.md b/aio/content/guide/testing.md index 8b35213280..013a2b92c1 100644 --- a/aio/content/guide/testing.md +++ b/aio/content/guide/testing.md @@ -4041,7 +4041,7 @@ This example resets the component's `providers` metadata. The type parameter, `T`, is the kind of metadata you'd pass to the `@Component` decorator: -这个类型参数,`T`,是你会传递给 `@Component` 装饰器的元数据的类型。 +这个类型参数 `T` 就是你传给 `@Component` 装饰器的元数据: selector?: string; diff --git a/aio/content/guide/upgrade-performance.md b/aio/content/guide/upgrade-performance.md index 7c161bed2c..877d4f5866 100644 --- a/aio/content/guide/upgrade-performance.md +++ b/aio/content/guide/upgrade-performance.md @@ -439,6 +439,7 @@ See [Upgrading from AngularJS](guide/upgrade) to learn about: module each injectable belongs to, when calling `downgradeInjectable()`._ [让 Angular 的依赖可注入到 AngularJS 中](guide/upgrade#making-angular-dependencies-injectable-to-angularjs)。 + *注意:如果你正在降级多个模块,就要在调用 `downgradeInjectable()` 时为每个包含可注入对象的模块指定降级后的模块名。*
diff --git a/aio/content/tutorial/toh-pt1.md b/aio/content/tutorial/toh-pt1.md index 8d02f169b4..950418e469 100644 --- a/aio/content/tutorial/toh-pt1.md +++ b/aio/content/tutorial/toh-pt1.md @@ -235,7 +235,7 @@ To automate that data flow, setup a two-way data binding between the `` f Refactor the details area in the `HeroesComponent` template so it looks like this: -把模板中的英雄名字重构成这样: +把模板中的英雄详情区重构成这样: