review quickstart.
This commit is contained in:
parent
a685691348
commit
f1896230b2
|
@ -17,7 +17,7 @@ block includes
|
||||||
You can try this out without installing anything. Open the <live-example>QuickStart example !{_on_Plunkr}</live-example> in another tab
|
You can try this out without installing anything. Open the <live-example>QuickStart example !{_on_Plunkr}</live-example> in another tab
|
||||||
and follow along.
|
and follow along.
|
||||||
|
|
||||||
无需安装任何东西,你就可以试试它。在另一个浏览器标签页打开并跟随<live-example>Plunkr上的《快速起步》例子</live-example>。
|
无需任何安装就可以试试它。在另一个浏览器标签页打开并跟随<live-example> Plunker 上的《快速起步》例子</live-example>。
|
||||||
|
|
||||||
Every component begins with an `@Component` [!{_decorator}](glossary.html#!{_decorator} '"!{_decorator}" explained')
|
Every component begins with an `@Component` [!{_decorator}](glossary.html#!{_decorator} '"!{_decorator}" explained')
|
||||||
<span if-docs="ts">function</span> that
|
<span if-docs="ts">function</span> that
|
||||||
|
@ -27,7 +27,7 @@ block includes
|
||||||
|
|
||||||
The `selector` property tells Angular to display the component inside a custom `<my-app>` tag in the `index.html`.
|
The `selector` property tells Angular to display the component inside a custom `<my-app>` tag in the `index.html`.
|
||||||
|
|
||||||
`selector`属性告诉 Angular 在`index.html`中的自定义`<my-app>`标签里显示该组件。
|
`selector`属性为 Angular 指定了在`index.html`中的自定义`<my-app>`标签里显示该组件。
|
||||||
|
|
||||||
+makeExample('index.html','my-app','index.html (inside <body>)')(format='.')
|
+makeExample('index.html','my-app','index.html (inside <body>)')(format='.')
|
||||||
:marked
|
:marked
|
||||||
|
@ -36,7 +36,7 @@ block includes
|
||||||
which is an Angular [interpolation binding](guide/displaying-data.html) expression.
|
which is an Angular [interpolation binding](guide/displaying-data.html) expression.
|
||||||
At runtime, Angular replaces `{{name}}` with the value of the component's `name` property.
|
At runtime, Angular replaces `{{name}}` with the value of the component's `name` property.
|
||||||
|
|
||||||
`template`属性定义了`<h1>`标题的一条消息。
|
`template`属性定义了`<h1>`标题里的一条消息。
|
||||||
该消息以 “Hello” 开始,以 Angular [插值绑定](guide/displaying-data.html)表达式`{{name}}`结束。
|
该消息以 “Hello” 开始,以 Angular [插值绑定](guide/displaying-data.html)表达式`{{name}}`结束。
|
||||||
在运行时,Angular 用组件的`name`属性值替换`{{name}}`。
|
在运行时,Angular 用组件的`name`属性值替换`{{name}}`。
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue