|
1 | | -<h1 class="no-toc">Tutorial: Tour of Heroes</h1> |
| 1 | +<h1 class="no-toc">チュートリアル: ツアー・オブ・ヒーローズ</h1> |
2 | 2 |
|
3 | | -The _Tour of Heroes_ tutorial covers the fundamentals of Angular. |
4 | | -In this tutorial you will build an app that helps a staffing agency manage its stable of heroes. |
| 3 | +_ツアー・オブ・ヒーローズ_ チュートリアルはAngularの基礎をカバーしています。 |
| 4 | +このチュートリアルでは人財派遣会社がヒーローの集合を管理するためのアプリケーションを開発します。 |
5 | 5 |
|
6 | | -This basic app has many of the features you'd expect to find in a data-driven application. |
7 | | -It acquires and displays a list of heroes, edits a selected hero's detail, and navigates among different views of heroic data. |
| 6 | +この基本的なアプリケーションは、データ駆動型アプリケーションで期待される多くの機能を持っています。 |
| 7 | +ヒーローのリストを取得して表示し、選択したヒーローの詳細を編集し、ヒーローデータのさまざまなビュー間を遷移します。 |
8 | 8 |
|
9 | | -By the end of the tutorial you will be able to do the following: |
| 9 | +このチュートリアルが終わるときには、あなたは以下のことが出来るようになっています。 |
10 | 10 |
|
11 | | -* Use built-in Angular directives to show and hide elements and display lists of hero data. |
12 | | -* Create Angular components to display hero details and show an array of heroes. |
13 | | -* Use one-way data binding for read-only data. |
14 | | -* Add editable fields to update a model with two-way data binding. |
15 | | -* Bind component methods to user events, like keystrokes and clicks. |
16 | | -* Enable users to select a hero from a master list and edit that hero in the details view. |
17 | | -* Format data with pipes. |
18 | | -* Create a shared service to assemble the heroes. |
19 | | -* Use routing to navigate among different views and their components. |
| 11 | +* 要素を表示・隠蔽する、そしてヒーローデータのリストを表示するための組み込みAngularディレクティブを使う。 |
| 12 | +* ヒーローの詳細やヒーローのリストを表示するためのAngularコンポーネントを作成する。 |
| 13 | +* 読み取り専用データのための単方向データバインディングを使用する。 |
| 14 | +* 双方向データバインディングを用いて、モデルを更新するための編集可能なフィールドを設置する。 |
| 15 | +* キー入力やクリックといったユーザーのイベントに対しコンポーネントが持つメソッドをバインドする。 |
| 16 | +* ユーザーがマスターリストからヒーローを選択し、詳細画面でそのヒーローを編集できるようにする。 |
| 17 | +* パイプによりデータを整形する。 |
| 18 | +* ヒーローを組み立てるための共有サービスを作成する。 |
| 19 | +* 様々なビューとそれらのコンポーネント間を遷移可能にするためにルーティングを使用する。 |
20 | 20 |
|
21 | | -You'll learn enough Angular to get started and gain confidence that |
22 | | -Angular can do whatever you need it to do. |
| 21 | +Angularを始めるためにAngularのことを十分に学び、Angularは必要なことを何でもできるということを確信するでしょう。 |
23 | 22 |
|
24 | | -After completing all tutorial steps, the final app will look like this <live-example name="toh-pt6"></live-example>. |
| 23 | +チュートリアルの全てのステップを完了した時、最終的なアプリケーションはこのようになります。 |
| 24 | +<live-example name="toh-pt6"></live-example> |
25 | 25 |
|
26 | 26 |
|
27 | | -## What you'll build |
| 27 | +## これから何を作るか |
28 | 28 |
|
29 | | -Here's a visual idea of where this tutorial leads, beginning with the "Dashboard" |
30 | | -view and the most heroic heroes: |
| 29 | +これは、このチュートリアルがもっとも勇敢なヒーローを表示するダッシュボードから始まり、どこに誘導するか |
| 30 | +という視覚的アイデアです。 |
31 | 31 |
|
32 | 32 | <figure> |
33 | 33 | <img src='generated/images/guide/toh/heroes-dashboard-1.png' alt="Output of heroes dashboard"> |
34 | 34 | </figure> |
35 | 35 |
|
36 | | -You can click the two links above the dashboard ("Dashboard" and "Heroes") |
37 | | -to navigate between this Dashboard view and a Heroes view. |
| 36 | +ダッシュボード上の2つのリンク("Dashboard" と "Heroes")をクリックすることができ、 |
| 37 | +このダッシュボード画面とヒーローの画面を遷移します。 |
38 | 38 |
|
39 | | -If you click the dashboard hero "Magneta," the router opens a "Hero Details" view |
40 | | -where you can change the hero's name. |
| 39 | +ダッシュボードで"Magneta"というヒーローをクリックしたら、ルーターはヒーローの名前を編集できる"Hero Details"画面を開きます。 |
41 | 40 |
|
42 | 41 | <figure> |
43 | 42 | <img src='generated/images/guide/toh/hero-details-1.png' alt="Details of hero in app"> |
44 | 43 | </figure> |
45 | 44 |
|
46 | | -Clicking the "Back" button returns you to the Dashboard. |
47 | | -Links at the top take you to either of the main views. |
48 | | -If you click "Heroes," the app displays the "Heroes" master list view. |
49 | | - |
| 45 | +”Back"ボタンをクリックすることでダッシュボードに戻ります。 |
| 46 | +上部にあるリンクはそれぞれのメインビューに遷移させます。 |
| 47 | +"Heroes"をクリックしたら、アプリケーションは"Heroes"のマスターリストのビューを表示します。 |
50 | 48 |
|
51 | 49 | <figure> |
52 | 50 | <img src='generated/images/guide/toh/heroes-list-2.png' alt="Output of heroes list app"> |
53 | 51 | </figure> |
54 | 52 |
|
55 | | -When you click a different hero name, the read-only mini detail beneath the list reflects the new choice. |
| 53 | +別のヒーローの名前をクリックすると、リストの下にある読み取り専用の小さな詳細ビューが、新しく選択されたものを反映します。 |
56 | 54 |
|
57 | | -You can click the "View Details" button to drill into the |
58 | | -editable details of the selected hero. |
| 55 | +"View Details"ボタンをクリックすることで、選択されたヒーローを編集可能な詳細ビューに移ることができます。 |
59 | 56 |
|
60 | | -The following diagram captures all of the navigation options. |
| 57 | +次の図は全ての遷移の選択肢をキャプチャしたものです。 |
61 | 58 |
|
62 | 59 | <figure> |
63 | 60 | <img src='generated/images/guide/toh/nav-diagram.png' alt="View navigations"> |
64 | 61 | </figure> |
65 | 62 |
|
66 | | -Here's the app in action: |
| 63 | +以下がアプリケーションでユーザーがアクションを取っている様子です。 |
67 | 64 |
|
68 | 65 | <figure> |
69 | 66 | <img src='generated/images/guide/toh/toh-anim.gif' alt="Tour of Heroes in Action"> |
|
0 commit comments