This commit is contained in:
rexebin 2016-09-25 12:17:06 +01:00
commit 529a34995c
2 changed files with 3 additions and 2 deletions

View File

@ -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='.')

View File

@ -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)。