Merge branch 'master' of https://github.com/angular/angular-cn
This commit is contained in:
commit
529a34995c
|
@ -195,7 +195,7 @@ a#root-module
|
||||||
The `@NgModule` decorator defines the metadata for the module.
|
The `@NgModule` decorator defines the metadata for the module.
|
||||||
We'll take an intuitive approach to understanding the metadata and fill in details as we go.
|
We'll take an intuitive approach to understanding the metadata and fill in details as we go.
|
||||||
|
|
||||||
`@NgModel`装饰器用来为模块定义元数据。
|
`@NgModule`装饰器用来为模块定义元数据。
|
||||||
我们先凭直觉来理解一下元数据,接下来再逐步深入细节。
|
我们先凭直觉来理解一下元数据,接下来再逐步深入细节。
|
||||||
|
|
||||||
This metadata imports a single helper module, `BrowserModule`, the module every browser app must import.
|
This metadata imports a single helper module, `BrowserModule`, the module every browser app must import.
|
||||||
|
@ -1294,7 +1294,7 @@ a#lazy-load
|
||||||
The `app/contact` folder holds a new file, `contact.routing.ts`.
|
The `app/contact` folder holds a new file, `contact.routing.ts`.
|
||||||
It defines the `contact` route we mentioned a bit earlier and also creates a `routing` object like so:
|
It defines the `contact` route we mentioned a bit earlier and also creates a `routing` object like so:
|
||||||
|
|
||||||
`app/contact`目录中也有一个新文件`Contact.routing.ts`。
|
`app/contact`目录中也有一个新文件`contact.routing.ts`。
|
||||||
它定义了我们前面提到过的`contact`路由,并创建了`routing`对象,就像这样:
|
它定义了我们前面提到过的`contact`路由,并创建了`routing`对象,就像这样:
|
||||||
|
|
||||||
+makeExample('ngmodule/ts/app/contact/contact.routing.ts', 'routing', 'app/contact/contact.routing.ts (routing)')(format='.')
|
+makeExample('ngmodule/ts/app/contact/contact.routing.ts', 'routing', 'app/contact/contact.routing.ts (routing)')(format='.')
|
||||||
|
|
|
@ -60,6 +60,7 @@
|
||||||
- Elderry(来自 Github )
|
- Elderry(来自 Github )
|
||||||
- smilesun(来自 Angular 中文社区)
|
- smilesun(来自 Angular 中文社区)
|
||||||
- xlf531533465(来自 Github )
|
- xlf531533465(来自 Github )
|
||||||
|
- vaanxy(来自 Github )
|
||||||
- 另外还有一些做好事不留名的活雷锋
|
- 另外还有一些做好事不留名的活雷锋
|
||||||
|
|
||||||
想让你的名字也出现在这里吗?请提供[反馈、纠错](https://github.com/angular/angular-cn/issues)。
|
想让你的名字也出现在这里吗?请提供[反馈、纠错](https://github.com/angular/angular-cn/issues)。
|
||||||
|
|
Loading…
Reference in New Issue