修订完ngmodule和npm packages

This commit is contained in:
Zhicheng Wang 2017-04-30 18:25:42 +08:00
parent f014896658
commit f21bc6730a
2 changed files with 8 additions and 7 deletions

View File

@ -77,8 +77,6 @@ block includes
[解决冲突](#resolve-conflicts "当两指令具有相同的选择器时……") [解决冲突](#resolve-conflicts "当两指令具有相同的选择器时……")
<!-- CF: See my comment in the "Resolve diretive conflicts" section below proposing renaming or reorganizing that section. -->
* [Feature modules](#feature-modules "Partition the app into feature modules") * [Feature modules](#feature-modules "Partition the app into feature modules")
[特性模块](#feature-modules "把应用分割成一些特性模块") [特性模块](#feature-modules "把应用分割成一些特性模块")
@ -1090,10 +1088,13 @@ a#contact-module-v1
:marked :marked
### Refactor the _AppModule_ ### Refactor the _AppModule_
### 重构 *AppModule* ### 重构 *AppModule*
Return to the `AppModule` and remove everything specific to the contact feature set. Return to the `AppModule` and remove everything specific to the contact feature set.
返回`AppModule`并移除专属于联系人特性下的任何东西。
* Delete the contact import statements. * Delete the contact import statements.
删除属于联系人的`import`语句。 删除属于联系人的`import`语句。

View File

@ -332,11 +332,11 @@ a(id="why-peer-dependencies")
>A **dependency** says, "I need this thing directly available to *me*." >A **dependency** says, "I need this thing directly available to *me*."
> >
>A **peerDependency** says, "If you want to use me, you need this thing available to *you*." >**dependency**说:“我需要这东西*对我*是直接可用的。”
>**dependency**说:“我需要这东西*对我*直接可用。”
> >
>**peerDependency**说:“如果你想使用我,你得先确保这东西*对你*可用” >A **peerDependency** says, "If you want to use me, you need this thing available to *you*."
>
>**peerDependency**说:“如果你想使用我,你得先确保这东西*对你*是可用的”
The Angular `package.json` specifies several *peer dependency* packages, The Angular `package.json` specifies several *peer dependency* packages,
each pinned to a particular version of a third-party package. each pinned to a particular version of a third-party package.
@ -397,4 +397,4 @@ a(id="why-peer-dependencies")
When this feature request is implemented, Angular will switch from *peerDependencies* to *optionalPeerDependencies* for all polyfills. When this feature request is implemented, Angular will switch from *peerDependencies* to *optionalPeerDependencies* for all polyfills.
不过有一个npm的新特性申请叫做“可选的peerDependencies”它将会允许我们更好的对这种关系建模。 不过有一个npm的新特性申请叫做“可选的peerDependencies”它将会允许我们更好的对这种关系建模。
一旦它被实现了Angular将把所有填充库从*peerDependencies*区切换到*optionalPeerDependencies* 一旦它被实现了Angular将把所有填充库从*peerDependencies*区切换到*optionalPeerDependencies*