Skip to content

Conversation

@chloe463
Copy link
Contributor

tutorial/top-ph6.mdの翻訳をしたので、レビューお願いしますm(_ _)m

issue: #58

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If your company signed a CLA, they designated a Point of Contact who decides which employees are authorized to participate. You may need to contact the Point of Contact for your company and ask to be added to the group of authorized contributors. If you don't know who your Point of Contact is, direct the project maintainer to go/cla#troubleshoot.
  • In order to pass this check, please resolve this problem and have the pull request author add another comment and the bot will run again.

@chloe463
Copy link
Contributor Author

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

Copy link
Collaborator

@lacolaco lacolaco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

レビューしました。いくつかの部分で修正をお願いします

* ユーザーは名前でヒーロー情報を検索できます。

When you're done with this page, the app should look like this <live-example></live-example>.
このページを終えたとき、このアプリは次のようになります。<live-example></lib-example>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ミスですか?

* open the root `AppModule`,
* import the `HttpClientModule` symbol from `@angular/common/http`,
* add it to the `@NgModule.imports` array.
* ルート`AppModule`を開く
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ルートの に修正していただけますか?

* `@NgModule.imports`の配列に`HttpClientModule`を追加

## Simulate a data server
## データサーバーをシミュレート
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

シミュレートする に修正お願いします

</code-example>

### Get heroes with _HttpClient_
### _HttpClient_を使ってヒーローを取得
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

取得する に修正お願いします


The `HeroService` methods will **tap** into the flow of observable values
and send a message (via `log()`) to the message area at the bottom of the page.
`HeroService`のメソットはObservableな値の流れに入り込んで、(`log()`を通して)ページ下部にメッセージを送信します。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

メソッド

`AsyncPipe`は自動的に`Observable`をsubscribeするので、コンポーネントクラスで何もする必要はありません。

### Fix the _HeroSearchComponent_ class
### _HeroSearchComponent_クラスの修正
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

を修正する

<code-example path="toh-pt6/src/app/hero-search/hero-search.component.ts" title="src/app/hero-search/hero-search.component.ts"></code-example>

Notice the declaration of `heroes$` as an `Observable`
`heroes$`の宣言が`Observable`であることに注意
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

注意しましょう

<code-example path="toh-pt6/src/app/hero.service.ts" region="deleteHero" title="src/app/hero.service.ts (削除)"></code-example>

Note that
下記に注目
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

注目しましょう

{@a search-pipe}

### Chaining RxJS operators
### RxJSオペレーターのチェーン
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

チェーン -> 連結

It cancels and discards previous search observables, returning only the latest search service observable.

* `switchMap()``debounce``distinctUntilChanged`を通り抜けた各検索語について検索サービスを呼び出します。
これは破棄された直前のobservableらをキャンセルして、最新の検索サービスのobservableのみを返却します。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これはそれまでの検索のobservableをキャンセルし、最新の検索サービスのobservableだけを返します

@chloe463
Copy link
Contributor Author

@lacolaco 修正いたしました!

@lacolaco
Copy link
Collaborator

修正ありがとうございました!

@lacolaco lacolaco merged commit f1b5a46 into angular:master Nov 16, 2017
@chloe463 chloe463 deleted the translate/toh-pt6 branch February 28, 2018 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants