fixed some translation errors and typo
This commit is contained in:
parent
e1090c1c54
commit
d6e2a8f614
|
@ -1053,7 +1053,7 @@ that wraps the _title_ property interpolation binding.
|
|||
You update the `beforeEach` to find that element with a standard HTML `querySelector`
|
||||
and assign it to the `h1` variable.
|
||||
|
||||
你要修改 `beforeEach` 来使用标准的 HTML `querySelector` 来找到钙元素,并把它赋值给 `h1` 变量。
|
||||
你要修改 `beforeEach` 来使用标准的 HTML `querySelector` 来找到该元素,并把它赋值给 `h1` 变量。
|
||||
|
||||
<code-example
|
||||
path="testing/src/app/banner/banner.component.spec.ts"
|
||||
|
|
|
@ -147,7 +147,7 @@ Add an `<app-hero-detail>` element near the bottom of the `HeroesComponent` temp
|
|||
|
||||
Bind the `HeroesComponent.selectedHero` to the element's `hero` property like this.
|
||||
|
||||
把 `HeroesComponent.selectedHero` 绑定到钙元素的 `hero` 属性,就像这样:
|
||||
把 `HeroesComponent.selectedHero` 绑定到该元素的 `hero` 属性,就像这样:
|
||||
|
||||
<code-example path="toh-pt3/src/app/heroes/heroes.component.html" region="hero-detail-binding" title="heroes.component.html (HeroDetail binding)">
|
||||
|
||||
|
|
|
@ -371,8 +371,8 @@ In the [HTTP tutorial](tutorial/toh-pt6), you'll call `HttpClient.get<Hero[]>()`
|
|||
The `HeroService.getHeroes` method used to return a `Hero[]`.
|
||||
Now it returns an `Observable<Hero[]>`.
|
||||
|
||||
`HeroService.getHeroes` 方法用于返回一个 `Hero[]`,
|
||||
目前它返回的是 `Observable<Hero[]>`。
|
||||
`HeroService.getHeroes` 方法之前返回一个 `Hero[]`,
|
||||
现在它返回的是 `Observable<Hero[]>`。
|
||||
|
||||
You'll have to adjust to that difference in `HeroesComponent`.
|
||||
|
||||
|
|
|
@ -40808,7 +40808,7 @@
|
|||
{
|
||||
"key": "YOUUPDATETHEBEFOREEACHTOFINDTHATELEMENTWITHASTANDARDHTMLQUERYSELECTORANDASSIGNITTOTHEH1VARIABLE",
|
||||
"original": "You update the `beforeEach` to find that element with a standard HTML `querySelector`\nand assign it to the `h1` variable.",
|
||||
"translation": "你要修改 `beforeEach` 来使用标准的 HTML `querySelector` 来找到钙元素,并把它赋值给 `h1` 变量。",
|
||||
"translation": "你要修改 `beforeEach` 来使用标准的 HTML `querySelector` 来找到该元素,并把它赋值给 `h1` 变量。",
|
||||
"sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/guide/testing.md"
|
||||
},
|
||||
{
|
||||
|
@ -50756,7 +50756,7 @@
|
|||
{
|
||||
"key": "BINDTHEHEROESCOMPONENTSELECTEDHEROTOTHEELEMENTSHEROPROPERTYLIKETHIS",
|
||||
"original": "Bind the `HeroesComponent.selectedHero` to the element's `hero` property like this.",
|
||||
"translation": "把 `HeroesComponent.selectedHero` 绑定到钙元素的 `hero` 属性,就像这样:",
|
||||
"translation": "把 `HeroesComponent.selectedHero` 绑定到该元素的 `hero` 属性,就像这样:",
|
||||
"sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/tutorial/toh-pt3.md"
|
||||
},
|
||||
{
|
||||
|
@ -51242,7 +51242,7 @@
|
|||
{
|
||||
"key": "THEHEROSERVICEGETHEROESMETHODUSEDTORETURNAHERONOWITRETURNSANOBSERVABLEHERO",
|
||||
"original": "The `HeroService.getHeroes` method used to return a `Hero[]`.\nNow it returns an `Observable<Hero[]>`.",
|
||||
"translation": "`HeroService.getHeroes` 方法用于返回一个 `Hero[]`,\n目前它返回的是 `Observable<Hero[]>`。",
|
||||
"translation": "`HeroService.getHeroes` 方法之前返回一个 `Hero[]`,\n现在它返回的是 `Observable<Hero[]>`。",
|
||||
"sourceFile": "/Users/twer/private/GDE/angular-cn/aio/content/tutorial/toh-pt4.md"
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue