-
Notifications
You must be signed in to change notification settings - Fork 141
translate: tutorial/toh-pt5.md #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
aio-ja/content/tutorial/toh-pt5.md
Outdated
|
|
||
| <figure> | ||
|
|
||
| <img src='generated/images/guide/toh/nav-diagram.png' alt="View navigations"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
altの中を翻訳していただけますか?
aio-ja/content/tutorial/toh-pt5.md
Outdated
|
|
||
| An Angular best practice is to load and configure the router in a separate, top-level module | ||
| that is dedicated to routing and imported by the root `AppModule`. | ||
| Angularのベストプラクティスは、ルーティングのみを行いルートの`AppModule`からインポートされる独立したトップレベルのモジュールにて、ルーターをロードし管理することです。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Angularのベストプラクティスは、ルートの`AppModule`からインポートされるルーティング専用のトップレベルモジュールで、ルーターをロードして管理することです。
aio-ja/content/tutorial/toh-pt5.md
Outdated
|
|
||
| `--flat` puts the file in `src/app` instead of its own folder.<br> | ||
| `--module=app` tells the CLI to register it in the `imports` array of the `AppModule`. | ||
| `--flat`は、コマンドが実行されたフォルダの代わりに、`src/app`に生成したファイルを置きます。<br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--flatは、固有のフォルダの代わりに、src/appに生成したファイルを置きます。
aio-ja/content/tutorial/toh-pt5.md
Outdated
|
|
||
| You generally don't declare components in a routing module so you can delete the | ||
| `@NgModule.declarations` array and delete `CommonModule` references too. | ||
| 通常、ルーティング・モジュールでコンポーネントの宣言はしないので、`@NgModule.declarations`配列と`CommonModule`への参照は削除できます。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ルーティングモジュール としましょう
aio-ja/content/tutorial/toh-pt5.md
Outdated
| ### _RouterModule.forRoot()_ | ||
|
|
||
| まず始めにルーターの初期化が必要で、ルーターがブラウザのロケーションの変化を検知し始めます。 | ||
| You first must initialize the router and start it listening for browser location changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原文が残っています
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
まず始めにルーターの初期化をおこない、ルーターにブラウザのロケーション変化の検知を始めさせます。
aio-ja/content/tutorial/toh-pt5.md
Outdated
| * さまざまなコンポーネント間を行き来するためにAngularルーターを追加した。 | ||
| * `AppComponent`を、リンクと`<router-outlet>`を持つナビゲーション・シェルに変更した。 | ||
| * `AppRoutingModule`でルータを設定した。 | ||
| * シンプルなルート、リダイレクトするルート、およびパラメータ化されたルートを定義した。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
パラメータ付きルートを定義しました
aio-ja/content/tutorial/toh-pt5.md
Outdated
| * `AppComponent`を、リンクと`<router-outlet>`を持つナビゲーション・シェルに変更した。 | ||
| * `AppRoutingModule`でルータを設定した。 | ||
| * シンプルなルート、リダイレクトするルート、およびパラメータ化されたルートを定義した。 | ||
| * アンカー要素で`routerLink`ディレクティブを使用した。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用しました
aio-ja/content/tutorial/toh-pt5.md
Outdated
| * `AppRoutingModule`でルータを設定した。 | ||
| * シンプルなルート、リダイレクトするルート、およびパラメータ化されたルートを定義した。 | ||
| * アンカー要素で`routerLink`ディレクティブを使用した。 | ||
| * 密接に結合されたマスター/詳細ビューをルート化した詳細ビューにリファクタリングした。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
master/detailビューをルート化した詳細ビューにリファクタリングしました
aio-ja/content/tutorial/toh-pt5.md
Outdated
| * シンプルなルート、リダイレクトするルート、およびパラメータ化されたルートを定義した。 | ||
| * アンカー要素で`routerLink`ディレクティブを使用した。 | ||
| * 密接に結合されたマスター/詳細ビューをルート化した詳細ビューにリファクタリングした。 | ||
| * ユーザーが選択したヒーローの詳細ビューに移動するために、ルーター・リンクのパラメータを使用した。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ルーターリンク 使用しました
aio-ja/content/tutorial/toh-pt5.md
Outdated
| * アンカー要素で`routerLink`ディレクティブを使用した。 | ||
| * 密接に結合されたマスター/詳細ビューをルート化した詳細ビューにリファクタリングした。 | ||
| * ユーザーが選択したヒーローの詳細ビューに移動するために、ルーター・リンクのパラメータを使用した。 | ||
| * 複数のコンポーネント間で`HeroService`を共有した。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
共有しました
|
翻訳ありがとうございます!いくつかの部分で修正をお願いします 🙇 |
|
レビューとコメントありがとうございます。 |
|
@lacolaco コメントを確認して、修正しました。再度レビューをお願いします。 |
|
修正ありがとうございました! |
tutorial/top-ph5.md を日本語に翻訳しましたので、レビューお願いします。
issueへのリンク
#61