fix compile errors.
This commit is contained in:
parent
56228ce571
commit
a13b40442e
|
@ -433,7 +433,7 @@ block ts-decorator
|
||||||
The `@Component` decorator takes a required configuration object with the
|
The `@Component` decorator takes a required configuration object with the
|
||||||
information Angular needs to create and present the component and its view.
|
information Angular needs to create and present the component and its view.
|
||||||
|
|
||||||
`@Component`!{_decoratorCn}能接受一个配置对象,Angular会基于这些信息创建和展示组件及其视图。
|
`@Component`!{_decoratorCn}能接受一个配置对象,Angular会基于这些信息创建和展示组件及其视图。
|
||||||
|
|
||||||
Here are a few of the possible `@Component` configuration options:
|
Here are a few of the possible `@Component` configuration options:
|
||||||
|
|
||||||
|
@ -482,11 +482,6 @@ figure
|
||||||
比如`@Injectable`、`@Input`和`@Output`等是一些最常用的!{_decoratorCn}。
|
比如`@Injectable`、`@Input`和`@Output`等是一些最常用的!{_decoratorCn}。
|
||||||
|
|
||||||
<br class="l-clear-both">
|
<br class="l-clear-both">
|
||||||
|
|
||||||
我们也会沿用类似的风格,用其它元数据!{_decoratorCn}来指导Angular的行为。
|
|
||||||
比如`@Injectable`、`@Input`和`@Output`等是一些最常用的!{_decoratorCn}。
|
|
||||||
|
|
||||||
<br clear="all">
|
|
||||||
:marked
|
:marked
|
||||||
The architectural takeaway is that you must add metadata to your code
|
The architectural takeaway is that you must add metadata to your code
|
||||||
so that Angular knows what to do.
|
so that Angular knows what to do.
|
||||||
|
@ -996,7 +991,7 @@ code-example().
|
||||||
> [**Router**](router.html): Navigate from page to page within the client
|
> [**Router**](router.html): Navigate from page to page within the client
|
||||||
application and never leave the browser.
|
application and never leave the browser.
|
||||||
|
|
||||||
> [**路由器**](router.html):在应用程序客户端导航,并且不离开浏览器。
|
> [**路由器**](router.html):在应用程序客户端导航,并且不离开浏览器。
|
||||||
|
|
||||||
> [**Testing**](testing.html): Run unit tests on your application parts as they interact with the Angular framework
|
> [**Testing**](testing.html): Run unit tests on your application parts as they interact with the Angular framework
|
||||||
using the _Angular Testing Platform_.
|
using the _Angular Testing Platform_.
|
||||||
|
|
|
@ -1943,7 +1943,7 @@ block dart-no-truthy-falsey
|
||||||
:marked
|
:marked
|
||||||
A template input variable is **not** the same as a [template reference variable](#ref-vars)!
|
A template input variable is **not** the same as a [template reference variable](#ref-vars)!
|
||||||
|
|
||||||
模板输入变量和[模板引用变量](#ref-vars)**不是**一回事!
|
模板输入变量和[模板引用变量](#ref-vars)**不是**一回事!
|
||||||
|
|
||||||
:marked
|
:marked
|
||||||
We use this variable within the template to access a hero’s properties,
|
We use this variable within the template to access a hero’s properties,
|
||||||
|
|
Loading…
Reference in New Issue