diff --git a/aio/content/guide/ajs-quick-reference.md b/aio/content/guide/ajs-quick-reference.md index 1d6657727e..eefbf49e8e 100644 --- a/aio/content/guide/ajs-quick-reference.md +++ b/aio/content/guide/ajs-quick-reference.md @@ -129,7 +129,7 @@ The following table lists some of the key AngularJS template features with their This example filters the `title` property to uppercase. - 在这个例子中,我们把`title`属性过滤成了大写形式。 + 这个例子中把`title`属性过滤成了大写形式。 @@ -188,7 +188,7 @@ The following table lists some of the key AngularJS template features with their Angular has true template input variables that are explicitly defined using the `let` keyword. - 在Angular中,我们有了真正的模板输入变量,它需要使用`let`关键字进行明确定义。 + Angular 有了真正的模板输入变量,它需要使用`let`关键字进行明确定义。 For more information, see the [ngFor micro-syntax](guide/template-syntax#microsyntax) section of the [Template Syntax](guide/template-syntax) page. @@ -282,7 +282,7 @@ AngularJS 为模板提供了七十多个内置指令。 and the application's root component (`AppComponent`) in `app.module.ts`. Angular 没有引导指令。 - 我们总是通过显式调用一个`bootstrap`函数,并传入应用模块的名字(`AppComponent`)来启动应用。 + 总是要通过显式调用一个`bootstrap`函数,并传入应用模块的名字(`AppComponent`)来启动应用。 diff --git a/aio/content/tutorial/index.md b/aio/content/tutorial/index.md index 16b192fe0b..3d38d69bde 100644 --- a/aio/content/tutorial/index.md +++ b/aio/content/tutorial/index.md @@ -5,7 +5,7 @@ The _Tour of Heroes_ tutorial covers the fundamentals of Angular. In this tutorial you will build an app that helps a staffing agency manage its stable of heroes. -**英雄指南**教程涵盖了 Angular 的核心原理。在本教程中,我们将构建一个应用,来帮助招聘机构来管理一群英雄。 +**英雄指南**教程涵盖了 Angular 的核心原理。在本教程中,你将构建一个应用,来帮助招聘机构来管理一群英雄。 This basic app has many of the features you'd expect to find in a data-driven application. It acquires and displays a list of heroes, edits a selected hero's detail, and navigates among different views of heroic data. @@ -15,7 +15,7 @@ It acquires and displays a list of heroes, edits a selected hero's detail, and n By the end of the tutorial you will be able to do the following: -在本教程的最后,我们将完成下列工作: +在本教程的最后,你将完成下列工作: * Use built-in Angular directives to show and hide elements and display lists of hero data. @@ -56,7 +56,7 @@ By the end of the tutorial you will be able to do the following: You'll learn enough Angular to get started and gain confidence that Angular can do whatever you need it to do. -完成本教程后,我们将学到足够的 Angular 知识,并确信 Angular 确实能提供我们所需的支持。 +你将学到足够的 Angular 知识,并确信 Angular 确实能提供你所需的支持。 After completing all tutorial steps, the final app will look like this . @@ -64,12 +64,12 @@ After completing all tutorial steps, the final app will look like this Output of heroes dashboard @@ -79,12 +79,12 @@ You can click the two links above the dashboard ("Dashboard" and "Heroes") to navigate between this Dashboard view and a Heroes view. 仪表盘顶部中有两个链接:“Dashboard(仪表盘)”和“Heroes(英雄列表)”。 - 我们将点击它们在“仪表盘”和“英雄列表”视图之间导航。 + 你将点击它们在“仪表盘”和“英雄列表”视图之间导航。 If you click the dashboard hero "Magneta," the router opens a "Hero Details" view where you can change the hero's name. -当我们点击仪表盘上名叫“Magneta”的英雄时,路由将把我们带到这个英雄的详情页,在这里,我们可以修改英雄的名字。 +当你点击仪表盘上名叫“Magneta”的英雄时,路由会打开英雄详情页,在这里,你可以修改英雄的名字。
Details of hero in app @@ -95,8 +95,8 @@ Links at the top take you to either of the main views. If you click "Heroes," the app displays the "Heroes" master list view. 点击“Back(后退)”按钮将返回到“Dashboard(仪表盘)”。 -顶部的链接可以把我们带到任何一个主视图。 -如果我们点击“Heroes(英雄列表)”链接,应用将把我们带到“英雄”主列表视图。 +顶部的链接可以把你带到任何一个主视图。 +如果你点击“Heroes(英雄列表)”链接,应用将把你带到“英雄”主列表视图。
Output of heroes list app @@ -104,16 +104,16 @@ If you click "Heroes," the app displays the "Heroes" master list view. When you click a different hero name, the read-only mini detail beneath the list reflects the new choice. -当我们点击另一位英雄时,一个只读的“微型详情视图”会显示在列表下方,以体现我们的选择。 +当你点击另一位英雄时,一个只读的“微型详情视图”会显示在列表下方,以体现你的选择。 You can click the "View Details" button to drill into the editable details of the selected hero. -我们可以点击“View Details(查看详情)”按钮进入所选英雄的编辑视图。 +你可以点击“View Details(查看详情)”按钮进入所选英雄的编辑视图。 The following diagram captures all of the navigation options. -下面这张图汇总了我们所有可能的导航路径。 +下面这张图汇总了所有可能的导航路径。
View navigations @@ -121,7 +121,7 @@ The following diagram captures all of the navigation options. Here's the app in action: -下图演示了我们应用中的所有操作。 +下图演示了本应用中的动图。
Tour of Heroes in Action diff --git a/aio/content/tutorial/toh-pt1.md b/aio/content/tutorial/toh-pt1.md index 9006b90def..a18b4c8214 100644 --- a/aio/content/tutorial/toh-pt1.md +++ b/aio/content/tutorial/toh-pt1.md @@ -7,7 +7,7 @@ Next you will create a new component to display hero information and place that component in the application shell. 应用程序现在有了基本的标题。 -接下来我们要创建一个新的组件来显示英雄信息并且把这个组件放到应用程序的外壳里去。 +接下来你要创建一个新的组件来显示英雄信息并且把这个组件放到应用程序的外壳里去。 ## Create the heroes component @@ -265,7 +265,7 @@ Here it binds the `hero.name` property to the HTML textbox so that data can flow Notice that the app stopped working when you added `[(ngModel)]`. -注意,当我们加上 `[(ngModel)]` 之后这个应用无法工作了。 +注意,当你加上 `[(ngModel)]` 之后这个应用无法工作了。 To see the error, open the browser development tools and look in the console for a message like diff --git a/aio/content/tutorial/toh-pt2.md b/aio/content/tutorial/toh-pt2.md index 31eab672d8..4f450f501e 100644 --- a/aio/content/tutorial/toh-pt2.md +++ b/aio/content/tutorial/toh-pt2.md @@ -215,7 +215,7 @@ and update the hero detail. Add a click event binding to the `
  • ` like this: -我们再往`
  • `元素上插入一句点击事件的绑定代码: +再往`
  • `元素上插入一句点击事件的绑定代码: @@ -414,7 +414,7 @@ The finished `
  • ` looks like this: Your app should look like this . -我们的应用现在变成了这样:。 +本应用现在变成了这样:。 Here are the code files discussed on this page, including the `HeroesComponent` styles. diff --git a/aio/content/tutorial/toh-pt4.md b/aio/content/tutorial/toh-pt4.md index ea9c1bef29..2f0b3fac8f 100644 --- a/aio/content/tutorial/toh-pt4.md +++ b/aio/content/tutorial/toh-pt4.md @@ -211,7 +211,7 @@ Open the `HeroesComponent` class file. Delete the `HEROES` import as you won't need that anymore. Import the `HeroService` instead. -删除 `HEROES` 导入,我们以后不会再用它了。 +删除 `HEROES` 导入,你以后不会再用它了。 转而导入 `HeroService`。 diff --git a/aio/content/tutorial/toh-pt5.md b/aio/content/tutorial/toh-pt5.md index 0bfe1a3d8c..70e3395d7e 100644 --- a/aio/content/tutorial/toh-pt5.md +++ b/aio/content/tutorial/toh-pt5.md @@ -750,7 +750,7 @@ The browser refreshes and the app crashes with a compiler error. Add it now. 刷新浏览器,应用挂了。出现一个编译错误,因为 `HeroService` 没有一个名叫 `getHero()` 的方法。 -我们这就添加它。 +这就添加它。 ### Add *HeroService.getHero()* @@ -851,7 +851,7 @@ from heroes list to the mini detail to the hero details and back to the heroes a You've met all of the navigational requirements that propelled this page. -我们已经满足了在本章开头设定的所有导航需求。 +你已经满足了在本章开头设定的所有导航需求。 ## Final code review diff --git a/aio/content/tutorial/toh-pt6.md b/aio/content/tutorial/toh-pt6.md index e7fa43a595..6c5e841cad 100644 --- a/aio/content/tutorial/toh-pt6.md +++ b/aio/content/tutorial/toh-pt6.md @@ -341,7 +341,7 @@ so it's generalized to meet their different needs. Instead of handling the error directly, it returns an _error handler_ function to `catchError` that it has configured with both the name of the operation that failed and a safe return value. -它不再直接处理这些错误,而是返回给 `catchError` 返回一个*错误处理*函数。我们还要用操作名和出错时要返回的安全值来对这个错误处理函数进行配置。 +它不再直接处理这些错误,而是返回给 `catchError` 返回一个*错误处理*函数。还要用操作名和出错时要返回的安全值来对这个错误处理函数进行配置。 @@ -686,7 +686,7 @@ Your goal is to issue only as many requests as necessary. Start by adding a `searchHeroes` method to the `HeroService`. -我们先把 `searchHeroes` 方法添加到 `HeroService` 中。 +先把 `searchHeroes` 方法添加到 `HeroService` 中。 . -我们的应用现在变成了这样:。 +你的应用现在变成了这样:。 Here are the code files discussed on this page (all in the `src/app/` folder). @@ -1043,31 +1043,31 @@ Here are the code files discussed on this page (all in the `src/app/` folder). You're at the end of your journey, and you've accomplished a lot. -旅程即将结束,不过我们已经收获颇丰。 +旅程即将结束,不过你已经收获颇丰。 * You added the necessary dependencies to use HTTP in the app. - 我们添加了在应用程序中使用 HTTP 的必备依赖。 + 你添加了在应用程序中使用 HTTP 的必备依赖。 * You refactored `HeroService` to load heroes from a web API. - 我们重构了`HeroService`,以通过 web API 来加载英雄数据。 + 你重构了`HeroService`,以通过 web API 来加载英雄数据。 * You extended `HeroService` to support `post()`, `put()`, and `delete()` methods. - 我们扩展了`HeroService`来支持 `post()`、`put()` 和 `delete()` 方法。 + 你扩展了`HeroService`来支持 `post()`、`put()` 和 `delete()` 方法。 * You updated the components to allow adding, editing, and deleting of heroes. - 我们更新了组件,以允许用户添加、编辑和删除英雄。 + 你更新了组件,以允许用户添加、编辑和删除英雄。 * You configured an in-memory web API. - 我们配置了一个内存 Web API。 + 你配置了一个内存 Web API。 * You learned how to use Observables. - 我们学会了如何使用“可观察对象”。 + 你学会了如何使用“可观察对象”。 This concludes the "Tour of Heroes" tutorial. You're ready to learn more about Angular development in the fundamentals section,