Polish by review

This commit is contained in:
Yang Lin 2016-11-21 00:48:26 +08:00
parent b8f0e41a37
commit e16f317034
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ figure
:marked :marked
Although this template uses typical HTML elements like `<h2>` and `<p>`, it also has some differences. Code like `*ngFor`, `{{hero.name}}`, `(click)`, `[hero]`, and `<hero-detail>` uses Angular's [template syntax](template-syntax.html). Although this template uses typical HTML elements like `<h2>` and `<p>`, it also has some differences. Code like `*ngFor`, `{{hero.name}}`, `(click)`, `[hero]`, and `<hero-detail>` uses Angular's [template syntax](template-syntax.html).
模板除了可以使用典型的HTML元素`<h2>`和`<p>`),它还能使用其它元素。例如(template-syntax.html)中使用了Angular的[模板语法]`*ngFor`、`{{hero.name}}`、`(click)`、`[hero]`和`<hero-detail>` 模板除了可以使用典型的HTML元素`<h2>`和`<p>`),它还能使用其它元素。例如(template-syntax.html)中使用了Angular的[模板语法]`*ngFor`、`{{hero.name}}`、`(click)`、`[hero]`和`<hero-detail>`。
In the last line of the template, the `<hero-detail>` tag is a custom element that represents a new component, `HeroDetailComponent`. In the last line of the template, the `<hero-detail>` tag is a custom element that represents a new component, `HeroDetailComponent`.