| 
									
										
										
										
											2019-12-02 12:47:19 -08:00
										 |  |  |  | # Frequently-used modules
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  | # 常用模块
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | An Angular app needs at least one module that serves as the root module. | 
					
						
							|  |  |  |  | As you add features to your app, you can add them in modules. | 
					
						
							|  |  |  |  | The following are frequently used Angular modules with examples | 
					
						
							|  |  |  |  | of some of the things they contain: | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-28 14:05:02 +08:00
										 |  |  |  | Angular 应用至少需要一个充当根模块使用的模块。 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  | 如果你要把某些特性添加到应用中,可以通过添加模块来实现。 | 
					
						
							|  |  |  |  | 下列是一些常用的 Angular 模块,其中带有一些其内容物的例子: | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | <table> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |  <tr> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  |    <th style="vertical-align: top"> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  |      NgModule | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  |    </th> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    <th style="vertical-align: top"> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  |      Import it from | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  |      导入自 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  |    </th> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    <th style="vertical-align: top"> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  |      Why you use it | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  |      为何使用 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  |    </th> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  |  </tr> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |  <tr> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |    <td> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |        <code>BrowserModule</code> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |    </td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    <td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |        <code>@angular/platform-browser</code> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    </td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    <td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |        When you want to run your app in a browser | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  |        当你想要在浏览器中运行应用时 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |    </td> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  |  </tr> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |  <tr> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |    <td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |        <code>CommonModule</code> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    </td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    <td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |        <code>@angular/common</code> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |    </td> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |    <td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |        When you want to use <code>NgIf</code>, <code>NgFor</code> | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  |        当你想要使用 <code>NgIf</code> 和 <code>NgFor</code> 时 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |    </td> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  |  </tr> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |  <tr> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |    <td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |        <code>FormsModule</code> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    </td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    <td> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |        <code>@angular/forms</code> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |    </td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    <td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-27 10:51:18 +08:00
										 |  |  |  |        When you want to build template driven forms (includes <code>NgModel</code>) | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  |        当要构建模板驱动表单时(它包含 <code>NgModel</code> ) | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |    </td> | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  |  </tr> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |  <tr> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |    <td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |        <code>ReactiveFormsModule</code> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    </td> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |    <td> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |        <code>@angular/forms</code> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    </td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    <td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-27 10:51:18 +08:00
										 |  |  |  |        When you want to build reactive forms | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  |        当要构建响应式表单时 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |    </td> | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  |  </tr> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |  <tr> | 
					
						
							|  |  |  |  |    <td><code>RouterModule</code></td> | 
					
						
							| 
									
										
										
										
											2018-01-17 14:57:43 +02:00
										 |  |  |  |    <td><code>@angular/router</code></td> | 
					
						
							| 
									
										
										
										
											2018-07-27 20:22:07 +08:00
										 |  |  |  |    <td> | 
					
						
							| 
									
										
										
										
											2018-10-23 14:45:15 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-27 20:22:07 +08:00
										 |  |  |  |    When you want to use <code>RouterLink</code>,<code>.forRoot()</code>, and <code>.forChild()</code> | 
					
						
							| 
									
										
										
										
											2019-01-01 22:17:43 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-27 20:22:07 +08:00
										 |  |  |  |    要使用路由功能,并且你要用到 <code>RouterLink</code>,<code>.forRoot()</code> 和 <code>.forChild()</code> 时 | 
					
						
							| 
									
										
										
										
											2019-01-01 22:17:43 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-27 20:22:07 +08:00
										 |  |  |  |    </td> | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  |  </tr> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |  <tr> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |    <td> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |        <code>HttpClientModule</code> | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |    </td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    <td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |        <code>@angular/common/http</code> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    </td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |    <td> | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-27 10:51:18 +08:00
										 |  |  |  |        When you want to talk to a server | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  |        当你要和服务器对话时 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  |    </td> | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  |  </tr> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | </table> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | ## Importing modules
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  | ## 导入模块
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | When you use these Angular modules, import them in `AppModule`, | 
					
						
							|  |  |  |  | or your feature module as appropriate, and list them in the `@NgModule` | 
					
						
							| 
									
										
										
										
											2018-10-16 14:20:56 -06:00
										 |  |  |  | `imports` array. For example, in the basic app generated by the [Angular CLI](cli), | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | `BrowserModule` is the first import at the top of the `AppModule`, | 
					
						
							| 
									
										
										
										
											2018-01-17 14:57:43 +02:00
										 |  |  |  | `app.module.ts`. | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-27 22:56:04 +08:00
										 |  |  |  | 当你使用这些 Angular 模块时,在 `AppModule`(或适当的特性模块)中导入它们,并把它们列在当前 `@NgModule` 的 `imports` 数组中。比如,在 [Angular CLI](cli) 生成的基本应用中,`BrowserModule` 会在 `app.module.ts` 中 `AppModule` 的顶部最先导入。 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-01-17 14:57:43 +02:00
										 |  |  |  | ```typescript | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | /* import modules so that AppModule can access them */ | 
					
						
							|  |  |  |  | import { BrowserModule } from '@angular/platform-browser'; | 
					
						
							|  |  |  |  | import { NgModule } from '@angular/core'; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | import { AppComponent } from './app.component'; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | @NgModule({ | 
					
						
							| 
									
										
										
										
											2018-01-17 14:57:43 +02:00
										 |  |  |  |   declarations: [ | 
					
						
							|  |  |  |  |     AppComponent | 
					
						
							|  |  |  |  |   ], | 
					
						
							|  |  |  |  |   imports: [ /* add modules here so Angular knows to use them */ | 
					
						
							|  |  |  |  |     BrowserModule, | 
					
						
							|  |  |  |  |   ], | 
					
						
							|  |  |  |  |   providers: [], | 
					
						
							|  |  |  |  |   bootstrap: [AppComponent] | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | }) | 
					
						
							|  |  |  |  | export class AppModule { } | 
					
						
							| 
									
										
										
										
											2018-03-07 11:25:56 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | ``` | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | The imports at the top of the array are JavaScript import statements | 
					
						
							|  |  |  |  | while the `imports` array within `@NgModule` is Angular specific. | 
					
						
							|  |  |  |  | For more information on the difference, see [JavaScript Modules vs. NgModules](guide/ngmodule-vs-jsmodule). | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  | 文件顶部的这些导入是 JavaScript 的导入语句,而 `@NgModule` 中的 `imports` 数组则是 Angular 特有的。 | 
					
						
							|  |  |  |  | 要了解更多的不同点,参见 [JavaScript 模块 vs. NgModule](guide/ngmodule-vs-jsmodule)。 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | ## `BrowserModule` and `CommonModule`
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  | ## `BrowserModule` 和 `CommonModule`
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | `BrowserModule` imports `CommonModule`, which contributes many common | 
					
						
							|  |  |  |  | directives such as `ngIf` and `ngFor`. Additionally, `BrowserModule` | 
					
						
							|  |  |  |  | re-exports `CommonModule` making all of its directives available | 
					
						
							|  |  |  |  | to any module that imports `BrowserModule`. | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  | `BrowserModule` 导入了 `CommonModule`,它贡献了很多通用的指令,比如 `ngIf` 和 `ngFor`。 | 
					
						
							| 
									
										
										
										
											2019-01-27 22:10:45 +08:00
										 |  |  |  | 另外,`BrowserModule` 重新导出了 `CommonModule`,以便它所有的指令在任何导入了 `BrowserModule` 的模块中都可以使用。 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | For apps that run in the browser, import `BrowserModule` in the | 
					
						
							|  |  |  |  | root `AppModule` because it provides services that are essential | 
					
						
							|  |  |  |  | to launch and run a browser app. `BrowserModule`’s providers | 
					
						
							|  |  |  |  | are for the whole app so it should only be in the root module, | 
					
						
							|  |  |  |  | not in feature modules. Feature modules only need the common | 
					
						
							|  |  |  |  | directives in `CommonModule`; they don’t need to re-install app-wide providers. | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-10 16:08:05 +08:00
										 |  |  |  | 对于运行在浏览器中的应用来说,都必须在根模块中 `AppModule` 导入 `BrowserModule`,因为它提供了启动和运行浏览器应用时某些必须的服务。`BrowserModule` 的提供者是面向整个应用的,所以它只能在根模块中使用,而不是特性模块。 | 
					
						
							| 
									
										
										
										
											2018-05-05 15:12:30 +08:00
										 |  |  |  | 特性模块只需要 `CommonModule` 中的常用指令,它们不需要重新安装所有全应用级的服务。 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | If you do import `BrowserModule` into a lazy loaded feature module, | 
					
						
							|  |  |  |  | Angular returns an error telling you to use `CommonModule` instead. | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-02 02:29:31 +08:00
										 |  |  |  | 如果你把 `BrowserModule` 导入了惰性加载的特性模块中,Angular 就会返回一个错误,并告诉你要改用 `CommonModule`。 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-11-11 14:47:51 -08:00
										 |  |  |  | <div class="lightbox"> | 
					
						
							|  |  |  |  |   <img src="generated/images/guide/frequent-ngmodules/browser-module-error.gif" width=750 alt="BrowserModule error"> | 
					
						
							|  |  |  |  | </div> | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | <hr /> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | ## More on NgModules
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  | ## 关于 NgModule 的更多知识
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | You may also be interested in the following: | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  | 你可能还对下列内容感兴趣: | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | * [Bootstrapping](guide/bootstrapping). | 
					
						
							| 
									
										
										
										
											2018-03-03 21:06:01 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-24 13:12:42 +08:00
										 |  |  |  |    [引导启动](guide/bootstrapping)。 | 
					
						
							| 
									
										
										
										
											2018-03-20 15:40:07 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-04 10:58:20 -04:00
										 |  |  |  | * [NgModules](guide/ngmodules). | 
					
						
							|  |  |  |  | * [JavaScript Modules vs. NgModules](guide/ngmodule-vs-jsmodule). | 
					
						
							| 
									
										
										
										
											2018-03-18 07:26:14 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-24 16:33:17 +08:00
										 |  |  |  |    [JavaScript 模块与 NgModules](guide/ngmodule-vs-jsmodule)。 |