fix: sync to 6.0(WIP)

This commit is contained in:
Zhicheng Wang 2018-05-10 13:53:04 +08:00
parent f0aff1095a
commit 11e0635d0d

View File

@ -1336,10 +1336,9 @@ A refresh button clears the hero list and the current selected hero before refet
"刷新"按钮会清除英雄列表和当前选中的英雄,然后重新获取英雄列表。 "刷新"按钮会清除英雄列表和当前选中的英雄,然后重新获取英雄列表。
Notice that `hero-list.component.ts` imports `Observable` and `finally` while `hero.service.ts` imports `Observable`, `of`, Notice that `hero-list.component.ts` imports `Observable` and the `finalize` operator, while `hero.service.ts` imports `Observable`, `of`, and the `delay` operator from `rxjs`.
and `delay` from `rxjs`.
注意,`hero-list.component.ts``rxjs` 中导入了 `Observable``finally`,而 `hero.service.ts` 导入了 `Observable``of``delay` 注意,`hero-list.component.ts``rxjs` 中导入了 `Observable``finalize`,而 `hero.service.ts` 导入了 `Observable``of``delay` 操作符
The remaining `HeroListComponent` and `HeroService` implementation details are beyond the scope of this tutorial. The remaining `HeroListComponent` and `HeroService` implementation details are beyond the scope of this tutorial.
However, the techniques involved are covered elsewhere in the documentation, including the _Tour of Heroes_ However, the techniques involved are covered elsewhere in the documentation, including the _Tour of Heroes_
@ -1535,9 +1534,9 @@ Replace the address `FormGroup` definition with a `secretLairs` `FormArray` def
</code-example> </code-example>
In `hero-detail.component.html` change `formArrayName="address"` to `formArrayName="secretLairs"`. In `hero-detail.component.html` change `formGroupName="address"` to `formArrayName="secretLairs"`.
`hero-detail.component.html` 中 把 `formArrayName="address"` 改为 `formArrayName="secretLairs"` `hero-detail.component.html` 中 把 `formGroupName="address"` 改为 `formArrayName="secretLairs"`
<code-example path="reactive-forms/src/app/hero-detail/hero-detail-8.component.html" region="form-array-name" title="src/app/hero-detail/hero-detail.component.ts" linenums="false"> <code-example path="reactive-forms/src/app/hero-detail/hero-detail-8.component.html" region="form-array-name" title="src/app/hero-detail/hero-detail.component.ts" linenums="false">