This commit is contained in:
Zhimin YE 2016-10-18 14:58:02 +01:00
commit abb21017c2
1 changed files with 6 additions and 6 deletions

View File

@ -1370,7 +1370,7 @@ a(href="#toc") 回到顶部
keep the `F`lattest structure you can, and keep the `F`lattest structure you can, and
`T`ry to be DRY. `T`ry to be DRY.
**坚持**组织应用的结构,达到这些目的:快速定位(`L`ocate)代码、一眼识别(`I`dentify)代码、尽量保持平面化结构(`F`lattest)和尝试`T`ry遵循不重复自己DRY - Do Not Repeat Yourself原则。 **坚持**组织应用的结构,达到这些目的:快速定位(`L`ocate)代码、一眼识别(`I`dentify)代码、尽量保持平结构(`F`lattest)和尝试`T`ry遵循不重复自己DRY - Do Not Repeat Yourself原则。
.s-rule.do .s-rule.do
@ -1470,7 +1470,7 @@ a(href="#toc") 回到顶部
.l-main-section .l-main-section
:marked :marked
### <a id="04-04"></a>Flat ### <a id="04-04"></a>Flat
### <a id="04-04"></a>平面化 ### <a id="04-04"></a>
#### <a href="#04-04">Style 04-04</a> #### <a href="#04-04">Style 04-04</a>
#### <a href="#04-04">风格04-04</a> #### <a href="#04-04">风格04-04</a>
@ -1478,7 +1478,7 @@ a(href="#toc") 回到顶部
:marked :marked
**Do** keep a flat folder structure as long as possible. **Do** keep a flat folder structure as long as possible.
**坚持**尽可能保持平面化的目录结构。 **坚持**尽可能保持平的目录结构。
.s-rule.consider .s-rule.consider
:marked :marked
@ -1746,7 +1746,7 @@ a(href="#toc") 回到顶部
:marked :marked
**Do** create an Angular module in the app's root folder (e.g., in `/app`). **Do** create an Angular module in the app's root folder (e.g., in `/app`).
**坚持**在应用的根部创建一个Angular模块如`/app`)。 **坚持**在应用的根部创建一个Angular模块如`/app`)。
.s-why .s-why
@ -1822,7 +1822,7 @@ a(href="#toc") 回到顶部
:marked :marked
**Why?** A feature module can easily be routed to both eagerly and lazily. **Why?** A feature module can easily be routed to both eagerly and lazily.
**为何?**特性模块能很容易的被路由器加载 —— 无论使用提前加载还是惰性加载的方式。 **为何?**特性模块能很容易的被路由器加载 —— 无论使用主动加载还是惰性加载的方式。
.s-why .s-why
:marked :marked
@ -2021,7 +2021,7 @@ a(href="#toc") 回到顶部
:marked :marked
**Avoid** importing the `CoreModule` anywhere except in the `AppModule`. **Avoid** importing the `CoreModule` anywhere except in the `AppModule`.
**避免**不要在`AppModule`之外的任何地方导入`CoreModule`。 **避免**在`AppModule`之外的任何地方导入`CoreModule`。
.s-why .s-why
:marked :marked